Рет қаралды 5,664
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