Contributors: Povilas Korop, Dario Fumagalli Tags: laravel, spatie, package, permissions, bootstrap Requires at least: 9.5 Tested up to: 10.1 Stable tag: 0.3.1 License: MIT License URI: https://opensource.org/license/mit
This is an updated version of the abandoned LaravelDaily/laravel-permission-ui Laravel package.
Laravel Permission UI is a simple and intuitive dashboard for managing users roles and permissions in a Laravel application.
Its roles and permissions engine is based on the spatie/laravel-permission package.
This Laravel Permission UI package has been forked from the original and has been ported to Bootstrap 4.
This fork is also an upgrade, featuring:
- A number of bug fixes, especially in the permissions editors.
- It comes with some additional settings.
- It comes with Italian and Spanish translations.
- It is compatible with Laravel Admin LTE. In a future version it will support integration with existing menus.
Original description, from original author Povilas Korop:
This package will create a simple Dashboard for managing roles/permissions based on the spatie/laravel-permission package.
Notice: this is a very early version of the package, may be buggy. Please report issues.
First, before installing this package, you need to have the spatie/laravel-permission
installed and configured.
composer require dfumagalli/laravel-permission-ui
Go to yourdomain.com/permissions
and you should see a simple dashboard with three menu items on top: to manage roles, permissions and assign them to users.
That dashboard is by default protected by the auth
middleware, but you can configure it, by publishing the config:
php artisan vendor:publish --provider="dfumagalli\PermissionsUI\PermissionsUIServiceProvider" --tag="config"
And then edit the values in config/permission_ui.php
:
return [
'middleware' => ['web', 'auth'],
'url_prefix' => 'permissions',
'route_name_prefix' => 'permission_ui.',
'create_button_classes' => 'btn-primary',
'edit_button_classes' => 'btn-primary',
'save_button_classes' => 'btn-primary',
'delete_button_classes' => 'btn-danger',
];
The visual design is based on simple Bootstrap 4 classes. At the moment, only button color customization options are available, but we may add them in the future, based on your ideas and feedback.
If you wish to translate the package, you may publish the language files using:
php artisan vendor:publish --provider="dfumagalli\PermissionsUI\PermissionsUIServiceProvider" --tag="lang"
To run the package's unit tests, run the following command:
vendor/bin/phpunit
This package is a simple user roles and permissions editor. It is a front-end for the excellent spatie/laravel-permission package.
No, this package has been completely ported over to Bootstrap 4 / 5.
It should work on Laravel 9 and 10.
Yes, the original author, Povilas Korop, posted a video on Youtube about this package.