Wow! Awesome! Very well done. I really appreciate the teaching style where you first show an implementation and then refactor it in the same breath. I would love to see how you handle authorization as well in a Laravel + React Native Application.
Fascinating! I followed the video and everything worked perfectly. I would have liked for you to use Laravel Breeze API authentication instead of creating the controllers since the main difference I find is that you don't use CSRF or token cookies. Nonetheless, I greatly appreciate your contribution!
Hello please I'm working on a VTU website using Laravel 11 as the backend and a native app. I want to make my website's API accessible to other VTU websites, allowing them to buy data just like my native app users can. Instead of creating separate endpoints for API and native app users, I thought of using the same endpoint for both. However, I'm unsure how to handle authentication and authorization. I noticed that the Sanctum token isn't a unique key that always returns the same value. Please help me understand how to approach this and secure my API. Thank you!
Hello bro, I'm having issues with Laravel when making a request to the endpoint. I strongly suspect it's because I'm reusing a project with Laravel 11, which has been configured with Sanctum + Breeze, especially for SPAs that work with session cookies. When I make the request in React Native, the error I'm getting is 'Axios Network Error'. I haven't been able to debug much, but I noticed in the catch error it mentions 'withCredentials', which leads me to believe I should use a clean Laravel setup with Sanctum for APIs.
heyy cdruc i hope ur doing fine, im wondering if there's any information about your auth course altho with this kinda of videos you're already explain alot thanks you
Help! logout gives me the error: "cannot read property 'name' of null". for some reason it still tries to load the home screen instead of login. everything works and it does logout the user but you have to refresh before it goes to the home screen. any ideas?
Hey, that's weird. Have you made *anything* different? make sure you're getting the user from the AuthContext and that you're conditionally rendering the Homepage: th-cam.com/video/rBcgNKt2FZs/w-d-xo.html
@@cdruc Hey, i've managed to get it working and returning to the login screen but i had to add '?' on the user. Welcome home, {user?.name} without the question mark on user, I click logout and get an error on the page "cannot read property 'name' of null".
All of these things in just 23 minutes. You are so amazing man. You are really underrated in Laravel community.
THIS VIDEO DESERVE ATLEAST 100K VIEWS
IDC, IM SHARING TO ALL PLACE I KNOW
Wow! Awesome! Very well done. I really appreciate the teaching style where you first show an implementation and then refactor it in the same breath. I would love to see how you handle authorization as well in a Laravel + React Native Application.
One of the best video I have seen on this topic! Thank you!
Thank you, and regards Argentina. You helped me a lot with this video.
Always learning new concepts from your videos 🔥
That was simply amazing! Thank you!
Fascinating! I followed the video and everything worked perfectly. I would have liked for you to use Laravel Breeze API authentication instead of creating the controllers since the main difference I find is that you don't use CSRF or token cookies. Nonetheless, I greatly appreciate your contribution!
hello can you please share the source code?
Awesome video as always Constantin!!! I hope to make a video with Laravel and Flutter...
describing way was superb
Hello please I'm working on a VTU website using Laravel 11 as the backend and a native app. I want to make my website's API accessible to other VTU websites, allowing them to buy data just like my native app users can. Instead of creating separate endpoints for API and native app users, I thought of using the same endpoint for both. However, I'm unsure how to handle authentication and authorization. I noticed that the Sanctum token isn't a unique key that always returns the same value. Please help me understand how to approach this and secure my API. Thank you!
Please release a full course on react native and laravel
Subscribed, thank you
Excellent video!, btw would you at some point make a video using fortify with sanctum? I think its most interesting feature is 2fa
Hello bro, I'm having issues with Laravel when making a request to the endpoint. I strongly suspect it's because I'm reusing a project with Laravel 11, which has been configured with Sanctum + Breeze, especially for SPAs that work with session cookies. When I make the request in React Native, the error I'm getting is 'Axios Network Error'. I haven't been able to debug much, but I noticed in the catch error it mentions 'withCredentials', which leads me to believe I should use a clean Laravel setup with Sanctum for APIs.
Has the project been uploaded to github?
will you do another one for using socialize with react native?
Hey man, by the way, the laravel project is blank? or you have installed sanctum or breeze?
read the title of the video
Please can you include the source code, this is what I've been looking for, thank you so much its so precise and well explained
Did you find the source code? if so can you share?
Thanks for video! What is your vs code font?
heyy cdruc i hope ur doing fine, im wondering if there's any information about your auth course altho with this kinda of videos you're already explain alot thanks you
@cdruc, hi, can you update your package laravel-langscanner to laravel 11
Lol, glad to see someone uses that. I’ll do it later today 👊
@@cdruc thanks a lot
Does anybody know what is the theme?
thansk alot
can i get the whole code ?
Help! logout gives me the error: "cannot read property 'name' of null".
for some reason it still tries to load the home screen instead of login. everything works and it does logout the user but you have to refresh before it goes to the home screen.
any ideas?
Hey, that's weird. Have you made *anything* different?
make sure you're getting the user from the AuthContext and that you're conditionally rendering the Homepage: th-cam.com/video/rBcgNKt2FZs/w-d-xo.html
@@cdruc Hey, i've managed to get it working and returning to the login screen but i had to add '?' on the user.
Welcome home, {user?.name}
without the question mark on user, I click logout and get an error on the page "cannot read property 'name' of null".
Sam, can you share the source code?
Hey @@arpi7 , sure:
///////////////////// HomeScreen.tsx ////////////////////////////////////////////////
export default function () {
const {user, setUser} = useContext(AuthContext);
async function handleLogout(): Promise {
console.log('logged out!!!');
await logout();
setUser(null);
}
return (
Welcome home, {user?.email}
);
}
//////////////////////////////////////////////////////////////////////////////
/////////////////////// App.tsx ///////////////////////////////////////////
const Stack = createStackNavigator();
const Tab = createBottomTabNavigator();
export default function App() {
const [user, setUser] = useState();
const [status, setStatus] = useState('loading');
useEffect(() => {
async function runEffect(): Promise {
try {
console.log('tried to load user');
const user = await loadUser();
setUser(user);
} catch (e) {
console.log('failed to load user', e);
}
setStatus('idle');
}
runEffect();
}, []);
if (status === 'loading') {
return ;
}
function MyTabs() {
return (
);
}
return (
{!user ? (
) : (
)}
);
}
Hey @@arpi7, I tried to post my code but youtube removed my comment
Woow i didnt think this one would work
CN you also do it in flutter
I wanna knowif it work there too
here’s a crazy idea:
*you* do it with flutter and let us know if it worked😄
my bet is that it will
hi can you create a video on new google place api
are you still use this github druc
i have the code do anyone need that
yes please
Yes please
Can you share the link to your repo?
Hi, please share it
yes