PHP code example of lwj / laravel-rbac
1. Go to this page and download the library: Download lwj/laravel-rbac library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lwj / laravel-rbac example snippets
Lwj\Rbac\ServiceProvider::class,
bash
php artisan jwt:secret
bash
php artisan vendor:publish --provider="Lwj\Rbac\ServiceProvider" --tag=config
php artisan vendor:publish --provider="Lwj\Rbac\ServiceProvider" --tag=assets
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
bash
php artisan migrate