net-code/laravel-access

Reusable RBAC authorization for Laravel: roles as data, permissions as code, scoped assignments — hexagonal ports & adapters.

Maintainers

Package info

github.com/Net-Tech-Marek-Rode-Sp-z-o-o/laravel-access

pkg:composer/net-code/laravel-access

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.1 2026-07-12 16:30 UTC

This package is auto-updated.

Last update: 2026-07-12 16:44:40 UTC


README

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