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

Опубликовано: 03 Ноябрь 2024
на канале: codingoblin
6,251
106

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 https://codingoblin.com