Download the PHP package laravel-enso/roles without Composer
On this page you can find all versions of the php package laravel-enso/roles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-enso/roles
More information about laravel-enso/roles
Files in laravel-enso/roles
Package roles
Short Description Role management for Laravel Enso
License MIT
Homepage https://github.com/laravel-enso/roles
Informations about the package roles
Roles
Description
Roles manages role records and role-to-permission assignment in Laravel Enso.
The package exposes CRUD and table APIs for roles, companion endpoints for reading and writing role permissions, and a sync command used to propagate role configuration between environments.
It is intended for Enso applications that use permission-based route access and need roles managed from the backoffice instead of hard-coded seeds alone.
Installation
Install the package:
Run the package migrations:
Optional publishes:
Features
- Role CRUD, options, table init, table data, and Excel export endpoints.
- Permission assignment endpoints for reading, setting, and writing role permissions.
- Config publishing for role restrictions and group visibility.
- Default role seeding for
admin,supervisor, andapplication. enso:roles:synccommand for syncing local role definitions fromconfig/local/roles.
Usage
Main route groups:
system.roles.*system.roles.permissions.*
Permission assignment flow:
- read current role permissions through
permissions.get - submit updates through
permissions.set - persist config files through
permissions.write
Environment sync:
The command only runs when the local config/local/roles directory exists.
Default seeded roles:
adminsupervisorapplication
API
HTTP routes
GET api/system/roles/createPOST api/system/rolesGET api/system/roles/{role}/editPATCH api/system/roles/{role}DELETE api/system/roles/{role}GET api/system/roles/initTableGET api/system/roles/tableDataGET api/system/roles/exportExcelGET api/system/roles/optionsGET api/system/roles/permissions/get/{role}POST api/system/roles/permissions/set/{role}POST api/system/roles/permissions/write/{role}
Artisan commands
enso:roles:sync
Depends On
Required Enso packages:
laravel-enso/core↗laravel-enso/enums↗laravel-enso/forms↗laravel-enso/helpers↗laravel-enso/menus↗laravel-enso/migrator↗laravel-enso/permissions↗laravel-enso/rememberable↗laravel-enso/select↗laravel-enso/tables↗laravel-enso/user-groups↗laravel-enso/users↗
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
All versions of roles with dependencies
laravel-enso/enums Version ^3.0
laravel-enso/forms Version ^5.0
laravel-enso/helpers Version ^4.0
laravel-enso/menus Version ^5.0
laravel-enso/migrator Version ^2.0
laravel-enso/permissions Version ^5.0
laravel-enso/rememberable Version ^4.0
laravel-enso/select Version ^5.0
laravel-enso/tables Version ^5.0
laravel-enso/user-groups Version ^2.5
laravel-enso/users Version ^2.8