Roles and Permissions in Laravel Jetstream (Inertia.js) - Spatie package

preview_player
Показать описание
How to implement Roles and permissions in a Laravel Jetstream project (Inertiajs). Use the Spatie package to implement roles and permissions in your Laravel project.

How to use Roles and Permissions in Laravel Jetstream (Inertiajs) using the Spatie Package
Using roles and permissions in Laravel can seem daunting at first. But when you break it down step by step its actually a very simple process.

Whats included in this example?
In this example we are going to create 2 roles.

‘admin’ role
‘standard’ role
We are then going to create 4 permissions.

‘write articles’
‘read articles’
‘edit articles’
‘delete articles’
We will then assign these permissions to the relevant roles. The ‘admin’ role will have all 4 permissions, while the ‘standard’ role will only have the ‘read articles’ role. We will then assign the roles to users within our application. Finally we will look at how to display content within our application based on the permissions held by the currently authenticated user. It sounds like a lot but it’s very simple when you break it down!
Рекомендации по теме
Комментарии
Автор

Really great and helpful video, thank you very much! I appreciated the details and thorough explanations for everything. As people have already mentioned I think turning the music off completely or as a minimum decreasing the volume would help. However overall very nice, so you deserve a big thumbs up, thank you!

gaffflen
Автор

Thanks u so much... finally i found the way to use Spatie/laravel-permissions with laravel breeze

juanantoniovivaldy
Автор

Hello friend! Thank you for the video and the accessibility of the explanation. Good luck and health to you

Rymblnec
Автор

Hi. It would be nice to have a video explaining the use of the Spatie Roles and Permissions package on the Jetstream TEAMS functionality. Thanks.

kreaweb-be
Автор

Good video but the music wasn't necessary it's too loud

targetx
Автор

hi there!

what if I need to use Policies ?

SonidoScoobyDoo