idoneo/humano-access-control

Roles & permissions management

v0.0.8 2025-09-26 23:42 UTC

This package is auto-updated.

Last update: 2025-09-26 23:46:04 UTC


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:

  1. Database translations via TranslationHelper::transGroup($key, 'modules')
  2. Language files (lang/<locale>.json) with key modules.<key>
  3. 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/permissions
  • yajra/laravel-datatables-oracle for listings

Support

If you find this package useful, you can support the maintainer on GitHub.

License

Licensed under the GNU Affero General Public License v3.0 (AGPL‑3.0). See the official text: GNU AGPLv3.