Download the PHP package mouhamedfd/permissions-generator without Composer
On this page you can find all versions of the php package mouhamedfd/permissions-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouhamedfd/permissions-generator
More information about mouhamedfd/permissions-generator
Files in mouhamedfd/permissions-generator
Package permissions-generator
Short Description :permission generation for all your declared routes with corresponding controller action
License MIT
Homepage https://github.com/mouhamedfd/permissions-generator
Informations about the package permissions-generator
Laravel Permissions Generator
This package add some artisan command to help generating permissions for your declared routes.
For the permissions management this package use Laravel-permission by Spatie
Usage
Each of your routes that you want to add permission should have an alias (name) seperated by dot(.) for exemple:
In this example permissions will be generated for the PostController linked to the specialaction and anotheraction
Take a look at contributing.md to see a to do list.
Installation
Via Composer
Publish configuration
The default configuration exclude some keywords and some columns, it's also possible to add some middlewares
Usage
Simulation mode
Database mode
Insertion to controllers
Change log
Please see the changelog for more information on what has changed recently.
Testing PHPUnit
Contributing
Please see contributing.md for details and a todolist.
Credits
- Mouhamed Fadel Diagana
- All Contributors
License
MIT. Please see the license file for more information.