Download the PHP package sudippalash/role-creator without Composer
On this page you can find all versions of the php package sudippalash/role-creator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sudippalash/role-creator
More information about sudippalash/role-creator
Files in sudippalash/role-creator
Package role-creator
Short Description Laravel Package for Role Management. This package uses the Spatie Laravel Permission package and includes role CRUD functionality & Seeder for permission.
License MIT
Informations about the package role-creator
Role Creator
role-creator
is a role management package of Laravel
that provides options to manage role for auth users.
Note: This package is wrapper of spatie/laravel-permission
package.
Install
Via Composer
Publish config, migrations & seeders files
You should publish
migrations files:
database/migrations/create_permission_tables.php
database/migrations/add_module_column_to_permissions_table.php
,
config files:
config/permission.php
,config/role-creator.php
and seeders file:
database/seeders/PermissionSeeder.php
with:
For config/permission.php
file you should check spatie/laravel-permission
package documentation.
This is the contents of the published config file config/role-creator.php
:
Optionally, you can publish the views using
Optionally, you can publish the lang using
You should run the migrations with:
In database/seeders/PermissionSeeder.php
seed file you should set your permission data and then you should run the seed with:
Usage
You should copy the below line and paste in your project menu section
#
If want to use this for multiple guard then you can use RoleCreator trait. (optional)
All versions of role-creator with dependencies
laravel/framework Version ^8.0|^9.0|^10.0|^11.0
spatie/laravel-permission Version ^6.0