idoneo / humano-access-control
Roles & permissions management
Fund package maintenance!
diego-mascarenhas
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.1
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0
- spatie/laravel-package-tools: ^1.16
- spatie/laravel-permission: ^6.0
- yajra/laravel-datatables-oracle: ^10.11 || ^11.0 || ^12.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^7.0 || ^8.0 || ^9.0
- orchestra/testbench: ^9.0 || ^10.0 || ^11.0
- pestphp/pest: ^2.0 || ^3.0 || ^4.0
- pestphp/pest-plugin-arch: ^2.0 || ^3.0 || ^4.0
- pestphp/pest-plugin-laravel: ^2.0 || ^3.0 || ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
README
Roles & permissions management for Laravel (Vuexy UI).
Installation
composer require idoneo/humano-access-control
Usage
- Routes:
/app/access-roles
/app/access-permission
Permissions matrix (CRUD)
The role editor shows actions in this order: Read, Create, Update, Delete.
- Read: groups
show
,index
,list
,view
- Create: groups
create
,store
- Update: groups
edit
,update
- Delete: groups
destroy
,delete
,remove
Translatable module labels
Each module (permission prefix before the first dot) has a translatable label. Resolution order:
- Database translations via
TranslationHelper::transGroup($key, 'modules')
- Language files (
lang/<locale>.json
) with keymodules.<key>
- Fallback:
ucfirst(<key>)
Example (file-based):
{ "modules.academy": "Academy", "modules.accounting": "Accounting" }
With DB translations, create group modules
and keys like academy
, accounting
, etc.
Dependencies
This package relies on:
spatie/laravel-permission
for roles/permissionsyajra/laravel-datatables-oracle
for listings
Support
If you find this package useful, you can support the maintainer on GitHub.
- Maintainer: diego-mascarenhas
License
Licensed under the GNU Affero General Public License v3.0 (AGPL‑3.0). See the official text: GNU AGPLv3.