1. Go to this page and download the library: Download echods/roles 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/ */
return [
/*
|--------------------------------------------------------------------------
| Default Roles
|--------------------------------------------------------------------------
|
| Here you can setup your default roles to seed your database
|
*/
'all' => [
[
'handle' => 'admin',
'description' => 'Administrator role with full access'
],
[
'handle' => 'editor',
'description' => 'Editor role with content management access'
],
[
'handle' => 'user',
'description' => 'Basic user role with limited access'
],
],
...