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 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 why you didn't include the expires_in for jwt? I was looking for some answers how to change the jwt token expiry and got landed on your content. I followed the instructions based on the docs including yours but In laravel 10, the factory method is undefined. Any thoughts about it?
You don't necessarily need to use the factory method, you can define your own expiry time without the factory. I didn't include the expire_at, cuz I want to treat the subject separately.
Why is it that when I run the composer require intervention/image command I get a 3 month old version of version 2? Then how do I get version 2 in laravel version 10
Hello Wisdom Diala. Can you please share what sort of terminal app you are using so that your project choices come as radio and not to type them manually by hand as it is on my fresh computer setup? Is it a component of composer you required globally or an app in your terminal that makes such possible?
You're welcome, will be dropping it soon. Please subscribe to my channel if you haven't subscribed and also turn the notification bell icon on, to get notify anytime I upload a new video.
Can you advise please? I'm encountering an error where laravel isn't recognising the 'ContactFormRequest' file, even though I have one. It comes up whenever I type into the input fields. I've tried "use App\Http\Livewire\ContactFormRequest;: in my web.php file but the problem is still happening
@@wisdomdiala Hi again, tried that but it's still not working. According to the laravel docs window, it's highlighting ' return (new ContactFormRequest() )->rules(); ' as the problem
I have h question plz answer Is laravel and next js is good combination? I have learnt laravel and now next js but now i came to know that if we learn react native we can build apps too but, would laravel is good choice for react native and if in future if we make website and connect them. Because there are more technologies for apps backend and apis im so much confused
I will say, Nextjs is good and Laravel is also good. Many companies have build good products with laravel, same with Nextjs, combining both, I don't know about that, except you're thinking of building your app as microservices. In summary I will say both frameworks are good depending on the type of application you're building.