PHP code example of ricardoboss / laravel-roles-migrations
1. Go to this page and download the library: Download ricardoboss/laravel-roles-migrations 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/ */
ricardoboss / laravel-roles-migrations example snippets
$permissions = [
[
'name' => "List users",
'slug' => "users.list", // optional
'description' => "Permission to list all users."
]
];
$roles = [
[
'name' => "Admin",
'level' => 10,
'slug' => "admin", // optional
'description' => "A user with all available permissions." // optional
]
];