PHP code example of binssoft / permissionmanager

1. Go to this page and download the library: Download binssoft/permissionmanager 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/ */

    

binssoft / permissionmanager example snippets


'providers' => [
 ...
    Binssoft\Permissionmanager\PermissionManagerServiceProvider::class
]

'aliases' => [
...
 'Permission'=> Binssoft\Permissionmanager\PermissionManager::class
 ]

php artisan vendor:publish

php artisan migrate

php artisan db:seed --class=RoleSeeder

Permission::setRolePermission(1, 'admin_user_list', true);