Gates (Permissions and Roles) | Laravel 10 Tutorial #36

  Рет қаралды 5,153

Yelo Code

Yelo Code

9 ай бұрын

Laravel 10 Feed page
On this episode we will look into laravel gates, an easy way to define permission and authorize users.
Playlist of Laravel 10 Tutorial Course :
• Laravel 10 Beginners C...
Boots Watch :
bootswatch.com/
Laravel debug bar:
github.com/barryvdh/laravel-d...
HTML template Github Link:
github.com/yelocode/bootstrap...
What is Laravel :
Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
en.wikipedia.org/wiki/Laravel
If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
If you have any questions or problems please leave a comment.
Laravel Blade
Laravel crash course
Laravel Database and crud tutorial
Laravel Login and Authentication
Laravel registration

Пікірлер: 23
@kouzokiodin3623
@kouzokiodin3623 10 күн бұрын
Sincerly i have watched more than 5 laravel courses but this course is the best one so far because of the way of explaining of this dude, Thanks man!
@hollengrhen1
@hollengrhen1 Ай бұрын
Thanks. This reminds me of Jeffrey Way from Laracasts
@yelocode
@yelocode 26 күн бұрын
Thank you.
@hamzameski3297
@hamzameski3297 5 ай бұрын
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
@kadirertan8664
@kadirertan8664 3 ай бұрын
Super easy to understand. Good job!🔥🔥🔥
@kreaweb-be
@kreaweb-be 9 ай бұрын
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.
@yelocode
@yelocode 9 ай бұрын
Thanks for watching. Yea casts is definitely really useful here, specially for dates.
@LoneTaha
@LoneTaha 3 ай бұрын
thanks a lot!
@ousssika5359
@ousssika5359 9 ай бұрын
thanks for the code as , usual , one issue use stille can access to login and register when you are already authenticated
@yelocode
@yelocode 9 ай бұрын
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.
@pmusic708
@pmusic708 Ай бұрын
Please tell me what to do if I create gate using Admin model?
@HamadAbdulla_7
@HamadAbdulla_7 9 ай бұрын
Great
@yelocode
@yelocode 9 ай бұрын
Thanks for watching.
@traiit
@traiit 16 күн бұрын
Please share settings vscode or theme
@milesparker557
@milesparker557 3 ай бұрын
For those using Laravel 11: `$this->authorize()` doesn't seem to work. Use `Gate::authorize()` instead.
@user-ss2tl1cy9x
@user-ss2tl1cy9x Ай бұрын
you saved me , thanks!
@abdalkhalekchamkha3622
@abdalkhalekchamkha3622 9 ай бұрын
Great , can you do more Gate videos for example how can i handle many Overlapping permission such as group manager admin user post user and so one
@yelocode
@yelocode 9 ай бұрын
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.
@abdalkhalekchamkha3622
@abdalkhalekchamkha3622 9 ай бұрын
yeah thank you for what you doing for laravel community@@yelocode
@plusSilver
@plusSilver 8 ай бұрын
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
@yelocode
@yelocode 8 ай бұрын
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
@plusSilver
@plusSilver 8 ай бұрын
@@yelocode You are right, thank you very much
@Mr.Capone-
@Mr.Capone- 9 ай бұрын
я тут! Я Русский - попа уже лица Я узкий ...... ляляляля Французский!!!
Policies (permissions) | Laravel 10 Tutorial #37
16:12
Yelo Code
Рет қаралды 4,5 М.
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 87 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 23 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,1 МЛН
Admin page (middleware basics) | Laravel 10 Tutorial #35
22:49
Yelo Code
Рет қаралды 3,8 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 152 М.
Laravel Sanctum SPA Auth Overview
13:34
cdruc
Рет қаралды 7 М.
Authorization in Laravel: Can You Do That?
8:29
Laravel
Рет қаралды 7 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН