This package provides ui views for laravel permissions package made by Spatie
Install and configure spatie permissions package link, and make sure to always install latest version.
- Install it via composer:
composer require isom/spatie-permissions-ui
- Publish views, translation using:
php artisan vendor:publish --provider="ISOM\SpatiePermissionsUI\SpatiePermissionsUiServiceProvider" --tag="views"
- If you want to change translations you can optionally publish them using:
php artisan vendor:publish --provider="ISOM\SpatiePermissionsUI\SpatiePermissionsUiServiceProvider" --tag="lang"
You can find the permissions, roles, users roles and permissions attachment views and components resources/views
and resources/views/components
you can easily change the layouts and elements classes to extend your project design.
If you need to update the controllers, you can publish them to your project using:
php artisan vendor:publish --provider="ISOM\SpatiePermissionsUI\SpatiePermissionsUiServiceProvider" --tag="controllers"