Honesly one of the most based on projects learning courses I've seen ever, Stuffs are explained as they should be, Free course at the same time, Thank you Sure so match for your efforts
Well explained. Good job!! You can cast the is_admin as boolean in the model. protected $casts = [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_admin' => 'boolean', ]; For more complex applications, I like to use the Spatie Roles and Permissions package.
I fix this on the next episode, hopefully will upload it tomorrow or after tomorrow. But for a quick fix need to add the guest middleware to login and register routes. Thanks for watching.
Thanks for watching. I will be covering this topic a little bit in the upcoming video. I will also be doing a mini course on handling roles and permission in Laravel soon hopefully.
Hi master, by some reason I have the next error: App\Providers\AuthServiceProvider::App\Providers\{closure}(): Argument #2 ($idea) must be of type App\Providers\Idea, App\Models\Idea given, called in /home/silver/Documentos/Laravel/plusSilver/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php on line 548 I hope you can help me, regards
Thanks for watching. From the error it seems, you have not imported Idea class in your authServiceProvider. Adding "use App\Models\Idea;" to the top of the AuthServiceProvider file should solve the issue. I hope that fixes the issue. I also have the code for this episode on github, if you want to compare your code with it: github.com/yelocode/ideas/commit/5e7ec3dae5a3068858b1093a0dff2e961939e710