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

preview_player
Показать описание
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 :

Boots Watch :

Laravel debug bar:

HTML template Github Link:

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.

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
Рекомендации по теме
Комментарии
Автор

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

hamzameski
Автор

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!

kouzokiodin
Автор

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.

kreaweb-be
Автор

Thanks. This reminds me of Jeffrey Way from Laracasts

hollengrhen
Автор

Super easy to understand. Good job!🔥🔥🔥

kadirertan
Автор

thanks for the code as, usual, one issue use stille can access to login and register when you are already authenticated

ousssika
Автор

For those using Laravel 11:

`$this->authorize()` doesn't seem to work. Use `Gate::authorize()` instead.

milesparker
Автор

Please tell me what to do if I create gate using Admin model?

tinhhoacuocdoii
Автор

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

abdalkhalekchamkha
Автор

Hi master, by some reason I have the next error:

Argument #2 ($idea) must be of type App\Providers\Idea, App\Models\Idea given, called in on line 548


I hope you can help me, regards

plusSilver
Автор

я тут! Я Русский - попа уже лица
Я узкий ляляляля Французский!!!

Mr.Capone-