Looking to hire Laravel developers? Try LaraJobs

laravel-access maintained by net-code

Description
Reusable RBAC authorization for Laravel: roles as data, permissions as code, scoped assignments — hexagonal ports & adapters.
Last update
2026/07/12 18:30 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

net-code/laravel-access

Reusable RBAC authorization for Laravel — roles as data, permissions as code, optional scopes — built with hexagonal ports & adapters. Authentication (who you are) is a separate concern → net-code/laravel-identity.

composer require net-code/laravel-access
php artisan migrate
$authorizer->can($userId, Permission::InvoicesIssue, $tenantId);   // host enum, typed
Route::post('/invoices', IssueInvoiceController::class)->middleware('permission:invoices.issue');
  • docs/usage.md — install, config, ports, wiring.
  • docs/flows.md — the end-to-end flows.

The core is subject-agnostic (subjectId: string): it never depends on the identity package — the host wires the bridge.

License

MIT