Download the PHP package zennit/abac without Composer
On this page you can find all versions of the php package zennit/abac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package abac
Short Description Attribute-Based Access Control (ABAC) for Laravel
License MIT
Homepage https://github.com/zennit-dev/abac
Informations about the package abac
ABAC (Attribute-Based Access Control) for Laravel
A flexible ABAC implementation for Laravel 13+ with a developer-friendly permission management API.
Installation
Publish config and run migrations:
Quick Start
-
Add the middleware to protected routes:
-
Add a permission:
- Request is allowed when actor/resource attributes satisfy the grant constraints.
Artisan Commands
The package registers utility commands for consumer setup:
abac:publishruns config + env publishing in one command.abac:publish-configpublishesconfig/abac.php.abac:publish-envappends missing ABAC environment variables to a chosen env file.abac:scaffold --from-routesgenerates a starter policy JSON scaffold fromabac.middleware.resource_patterns.
Seeding Permissions in Your App
Seed permissions from your consuming application's seeders instead of package-provided seeders:
Then call your seeder from DatabaseSeeder as part of your normal app bootstrap.
Documentation
Full docs: https://zennit-dev.github.io/abac/
Local docs index: docs/index.md
License
MIT License — see LICENSE.md
All versions of abac with dependencies
illuminate/cache Version ^13.0
illuminate/console Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/http Version ^13.0
illuminate/routing Version ^13.0
illuminate/support Version ^13.0