net-code/laravel-access
Composer 安装命令:
composer require net-code/laravel-access
包简介
Reusable RBAC authorization for Laravel: roles as data, permissions as code, scoped assignments — hexagonal ports & adapters.
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-12