PHP code example of manukminasyan / laravel-permission-manager

1. Go to this page and download the library: Download manukminasyan/laravel-permission-manager 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/ */

    

manukminasyan / laravel-permission-manager example snippets


'providers' => [
    // ...
    ManukMinasyan\LaravelPermissionManager\LaravelPermissionManagerServiceProvider::class,
];

return [
    'database' => [
        'option_table' => 'permission_manager_options',
        'model_table' => 'permission_manager_models',

        'group_table' => 'permission_manager_groups',
        'route_table' => 'permission_manager_routes',
        'route_permission_table' => 'permission_manager_route_permission'
    ],

    'user_model' => \App\User::class,

    'middleware' => [
          'web', 'auth'
    ],

    'route' => 'permission-manager'
];

use Silber\Bouncer\Database\HasRolesAndAbilities;

class User extends Model
{
    use HasRolesAndAbilities;
}

php artisan vendor:publish --provider="ManukMinasyan\LaravelPermissionManager\LaravelPermissionManagerServiceProvider"

php artisan migrate