Thank you very much for these lessons... it would be great if you made a video on the logout method and how to consume this api via an angular front..Be blessed.Thanks
at 16:42 access_token is null, im using laravel 11.6.0, not sure why this line $token = auth()->login($user) says that login() returns void Any help apreciated
@@wisdomdiala Tyvm for the reply, i fixed the issue by changing the defaults array in api/config/auth.php: 'defaults' => [ 'guard' => 'api', 'passwords' => 'users', ]
fixed it by adding the route to $except array in VerifyCsrfToken.php :D in laravel framework 11.6.0 the VerifyCsrfToken.php file is in the route-> vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/
Thank you, you helped me a lot. I'm brazilian, I don't speak english very well, but I understood your video. Thanks.
Thanks for the feedback, you can also help by subscribing and liking the video.
Thank you very much for these lessons... it would be great if you made a video on the logout method and how to consume this api via an angular front..Be blessed.Thanks
Hi, i was wondering what vs code extension are you using that allows you to auto import modules, like here in 12:00.
You can use PHP companion extension
at 16:42 access_token is null, im using laravel 11.6.0, not sure why this line
$token = auth()->login($user)
says that login() returns void
Any help apreciated
Can I see your code snipped?
@@wisdomdiala Tyvm for the reply, i fixed the issue by changing the defaults array in api/config/auth.php:
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
]
Thankyou so much man!
You're welcome
at 10:40 i get response 419 unknown status : "message": "CSRF token mismatch.", help pls
fixed it by adding the route to $except array in VerifyCsrfToken.php :D
in laravel framework 11.6.0 the VerifyCsrfToken.php file is in the route-> vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/
Did you include the api prefix to your endpoint?
@@wisdomdiala I dont remember what was the issue but i've fixed it, thank you for replying tho :)