tharindu / laravel-permission-ui
A Laravel package to manage roles and permissions with UI implementation.
v1.0.0
2024-06-01 20:32 UTC
Requires
- php: >=8.1
- illuminate/auth: ^10.0|^11.0
- illuminate/config: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- phpunit/phpunit: ^9.0|^10.0|^11.0
- spatie/laravel-permission: ^6.0
README
A Laravel package to manage roles and permissions with UI implementation using Bootstrap 5.
Installation
You can install the package via composer:
composer require tharindu/laravel-permission-ui
Usage
Generate Role Based Permissions UI
Run the following artisan command to generate the UI for role-based permissions:
php artisan permissions
Set User Permissions UI
Run the following artisan command to generate the UI for setting user permissions:
php artisan permissions
Publishing Views
If you want to customize the views, you can publish them using the following command:
php artisan vendor --tag=views
This will publish the views to the resources/views/vendor/laravelpermissionui
directory.
Example Views
- Role Management View:
resources/views/vendor/laravelpermissionui/roles.blade.php
- User Permissions View:
resources/views/vendor/laravelpermissionui/permissions.blade.php
Contributing
Feel free to contribute by making a pull request or opening an issue.
License
The MIT License (MIT). Please see License File for more information.