softlinks / rbac
Softlinks RBAC Package for Laravel
v1.0.8
2026-02-02 12:52 UTC
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0|^12.0
README
A robust, flexible, and easy-to-install Role-Based Access Control (RBAC) package for Laravel applications. This package scaffolds a complete admin panel, authentication guard, and route-based permission system.
🚀 Key Features
- Automated Installation: Scaffolds all necessary models, controllers, and views with a single command.
- Dynamic Guard Registration: Automatically registers the
adminguard at runtime—no more manual config tweaks. - Route-Based Permissions: Powerful permission checks based on URI slugs.
- Admin Panel UI: Includes a premium login page and dashboard layout stubs.
- Safe Uninstallation: Clean cleanup of all generated files.
📥 Installation
For Production Use (Global): Once published, you can install the package via Composer:
composer require softlinks/rbac
For Development Use (Local):
- Add the following to your root
composer.jsonunderautoload.psr-4:"Softlinks\\Rbac\\": "packages/Softlinks/Rbac/src/"
- Run
composer dump-autoload.
🚀 Getting Started
After installing, run the interactive setup:
php artisan softlinks:install-rbac
🌍 Making it Public (GitHub & Packagist)
To make this package work for others globally via composer require:
- Host on GitHub: Create a repository named
softlinks-rbacand push this package folder. - Submit to Packagist: Go to Packagist.org, log in, and submit your GitHub URL.
- Automatic Autoload: Once published, Composer will automatically handle the
Softlinks\Rbacnamespace—no manualcomposer.jsonedits required!
🗑️ Clean Uninstallation
The delete command is now "smart"—it will automatically remove all files, revert config changes, and even clean up its own namespace from your composer.json if it was added manually.
php artisan softlinks:delete-rbac
Developed by Softlinks.