Full Laravel project - Part 3 - [Spatie Roles and Permissions]

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

codingoblin

codingoblin

11 ай бұрын

Part 3 of the full Laravel project series sees us create roles and permissions with the Spatie Roles and Permissions package.
We will create an admin role and a default user role. We will also create permissions and assign them the the admin role. These roles and permissions are created by using a database seeder. We will then create an admin user and assign the admin role to this user. This admin user is also created using a seeder.
When new users register with our web app they will be assigned the default user role. This is achieved by modifying the CreateNewUser.php file, found in the the app/Actions/Fortify folder of our Laravel Jetstream project.
Check out codingoblin.com

Пікірлер: 15
@Dev_Jet
@Dev_Jet 3 ай бұрын
Thanks John for this straightforward tutorial about permission and roles. Continue doing good work bro. Really appreciate your contents 👏
@codingoblin
@codingoblin 3 ай бұрын
Cheers mate 👊
@RobertKeck01
@RobertKeck01 7 ай бұрын
Hi John, Thank you very much for the excellent video. I'm currently working on a final project at my university using Laravel and couldn't find a decent tutorial that explains roles and permissions. You were the only one I really understood and was able to implement it as well. Greetings from Fulda/Germany.
@codingoblin
@codingoblin 7 ай бұрын
Great stuff, glad I could help. What is the project you are building for your uni work?
@rohmandz9532
@rohmandz9532 6 ай бұрын
Interesting, I'll save this for now
@dannjohnrem
@dannjohnrem 7 ай бұрын
keep up the good work, I love your work bro.
@codingoblin
@codingoblin 7 ай бұрын
Cheers mate 👊
@ajithkranatunga
@ajithkranatunga 3 ай бұрын
This helped a lot. Thanks for sharing
@codingoblin
@codingoblin 3 ай бұрын
No worries mate. Glad I could help 👊
@taolao3595
@taolao3595 10 ай бұрын
Can you make the video about feature team of spatie? I dont know why super admin not working after open team feature. Thank you.
@codingoblin
@codingoblin 10 ай бұрын
Hi mate. I don't know for sure about your specific situation but this might help you: On the spatie.be website is says that when you are enabling the teams permissions feature you must make the configuration changes before performing the migration when first installing the package. I may do videos about Teams permissions in the future 👊
@ryanm.122
@ryanm.122 3 ай бұрын
@@codingoblin Agree. Documentation is very vague when it comes to teams and there are not very many resources regarding adding the teams feature for Spatie.
@mohamedsalem9889
@mohamedsalem9889 Ай бұрын
Thanks , it's clear and helpfu but i got this error in final step: Spatie\Permission\Exceptions\RoleDoesNotExist There is no role named `admin` for guard `web`.
@codingoblin
@codingoblin Ай бұрын
Did you get this sorted mate? Does the role exist in your database?
@mohamedsalem9889
@mohamedsalem9889 Ай бұрын
@@codingoblin yeah, the role store in db
Enable and disable Laravel Jetstream features
4:54
codingoblin
Рет қаралды 1 М.
Laravel Roles and Permissions: All CORE Things You Need To Know
16:32
Laravel Daily
Рет қаралды 217 М.
Jetstream/Fortify Multi-Auth: Roles, Permissions and Guards
19:00
Laravel Daily
Рет қаралды 99 М.
Laravel + Service Pattern + DTOs = ❤️❤️❤️
17:52
Przemysław Przyłucki
Рет қаралды 45 М.
Laravel - Admin panel with Spatie Permission package - Episode 9
25:12
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 358 М.
Проверил, как вам?
0:58
Коннор
Рет қаралды 240 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,1 МЛН