RBAC module for the Lumen PHP framework based on Overseer.
- PHP 5.6 or newer
- Run the following command to install the package through Composer:
composer require nordsoftware/lumen-rbac
-
Copy the configuration template in
config/rbac.php
to your application'sconfig
directory and modify according to your needs. -
Add the following lines to your
bootstrap/app.php
:
$app->register('Nord\Lumen\Rbac\Doctrine\DoctrineStorageServiceProvider');
$app->register('Nord\Lumen\Rbac\RbacServiceProvider');
You should now have a bunch of new Artisan commands available under the doctrine
namespace. In your code, you can
either inject RbacService
or use the Rbac
facade to access the service.
Please read the guidelines.
MIT. See LICENSE.