Тёмный

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

Yelo Code
Подписаться 17 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@kouzokiodin3623
@kouzokiodin3623 4 месяца назад
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!
@hamzameski3297
@hamzameski3297 9 месяцев назад
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 7 месяцев назад
Super easy to understand. Good job!🔥🔥🔥
@kreaweb-be
@kreaweb-be Год назад
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 Год назад
Thanks for watching. Yea casts is definitely really useful here, specially for dates.
@hollengrhen1
@hollengrhen1 5 месяцев назад
Thanks. This reminds me of Jeffrey Way from Laracasts
@yelocode
@yelocode 4 месяца назад
Thank you.
@milesparker557
@milesparker557 6 месяцев назад
For those using Laravel 11: `$this->authorize()` doesn't seem to work. Use `Gate::authorize()` instead.
@AnthonyEmacs
@AnthonyEmacs 5 месяцев назад
you saved me , thanks!
@emiriin
@emiriin 2 месяца назад
You are a superhero, thanks!
@ousssika5359
@ousssika5359 Год назад
thanks for the code as , usual , one issue use stille can access to login and register when you are already authenticated
@yelocode
@yelocode Год назад
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.
@abdalkhalekchamkha3622
@abdalkhalekchamkha3622 Год назад
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 Год назад
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 Год назад
yeah thank you for what you doing for laravel community@@yelocode
@tinhhoacuocdoii
@tinhhoacuocdoii 5 месяцев назад
Please tell me what to do if I create gate using Admin model?
@LoneTaha
@LoneTaha 7 месяцев назад
thanks a lot!
@traiit
@traiit 4 месяца назад
Please share settings vscode or theme
@plusSilver
@plusSilver Год назад
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 Год назад
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 Год назад
@@yelocode You are right, thank you very much
@HamadAbdulla_7
@HamadAbdulla_7 Год назад
Great
@yelocode
@yelocode Год назад
Thanks for watching.
@Mr.Capone-
@Mr.Capone- Год назад
я тут! Я Русский - попа уже лица Я узкий ...... ляляляля Французский!!!
Далее
Policies (permissions) | Laravel 10 Tutorial #37
16:12
Emails & Mail Trap testing | Laravel 10 Tutorial #29
16:17
Laravel Livewire: Real Projects
5:09
Просмотров 4,1 тыс.
Why Don't We Have A Laravel For JavaScript?
12:36
Просмотров 107 тыс.
Authorization in Laravel: Can You Do That?
8:29
Просмотров 10 тыс.
Laravel + Livewire todo app (and so much more)
16:41
Просмотров 48 тыс.
Laravel Gates in depth | Arabic
13:29
Просмотров 1,7 тыс.
Form Request | Laravel 10 Tutorial #39
16:56
Просмотров 3,9 тыс.