Laravel Roles and Permissions: Spatie, AuthorizeResource and Super Admin

preview_player
Показать описание
The third part of a code review of an open-source repository called Skuul. This time, we're talking about roles and permissions, with seeders, controllers, and policies.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Something I like doing as well is storing those strings as contants rather than guessing what they are.
Then when you actually utilize it, your code can be far more clear and avoid any string mismatching issues

Eg:

JohnRoux
Автор

Big thanks! @LaravelDaily. This really helped me understand Roles and Permissions more deeply. Really appreciate this kind of content. Thank you!

Dev_Jet
Автор

thank you man, i think this is really useful and beneficial for me. thank you and keep up the good work

hosamgnaba
Автор

It's really cool, props! Will you make a video using this structure in REST API too? And thanks for sharing

rodrigosarri
Автор

Thank you for the explanation, roles and permission has been giving me a real headache

alvinellavu
Автор

Do you have any tutorial on how to use the team roles and permission?

hvgnpgl
Автор

Since he always returns true for superadmin, would it make more sense to do Gate::before?

DragosBurciu
Автор

how to do dynamic roles and permission? In this video all the permissions are already define but I need dynamic permission names and check those permission to access or not?

sabinmagar
Автор

Ooowh...lovely...
This is what I want... 🤩🤩🤩🤩

TrikNgonlen
Автор

How to handle following scenario:
Suppose I have "Build Your Own Role" functionality. And I provide the code user/developer to list of all the permission to build a role from the admin. How to handle permission or policy to allow updating own data or all user/model data. I've seen instances of adding && clause with ID in policy. But how about when any role can have any permission and still being validated.

hardiklakhalani
Автор

Hey, could you make a video about laravel octane? Especially about cases where you have logic in constructors, because the constructor in octane is called only once?

Tristan-sclg
Автор

removing the if statement at 2:36 would revoke permission to super admin since super admin role is checked at gate::after

awmachawngthu
Автор

Hey Povilas, have you done anything like this one for Bouncer?

dpxwple
Автор

Hi sir, I have a question. In my project, users have different roles based on their region. For example, a user might be an admin in Dubai, a manager in India, and a team lead in Saudi Arabia. How can I implement this functionality in Laravel?

shaheryar
Автор

I need permissions that are like functions because my permissions are based on relationship between different resources with conplex ways to retrieve related elements

elmalleable
Автор

Please can you make video for approval system multilevel

MouayedElhak
Автор

Strange... I wonder why he is using firstOrCreate in the permissions seeder if he won't be assigning the "first" option to a variable, or maybe he meant to use updateOrCreate?

sibow
Автор

Hi. Does this package is free? How about carbon and maatwebsite package? Could you explain what is post card. Tnhak you

mrt
Автор

Please make video on wildcard permissions

nomanalisiraj
Автор

Just a note not relevant to the current video: I would like to thank Mr. Korop for the article on validation rules where he talks about the rule "sometimes", when a field may or may not exist and then the rule is applied.

luizmeier