PHP code example of dfumagalli / laravel-permission-ui

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

    

dfumagalli / laravel-permission-ui example snippets


return [
    'middleware'        => ['web', 'auth'],
    'url_prefix'        => 'permissions',
    'route_name_prefix' => 'permission_ui.',
    'create_button_classes' => 'btn-primary',
    'edit_button_classes' => 'btn-primary',
    'save_button_classes' =>  'btn-primary',
    'delete_button_classes' => 'btn-danger',
];
sh
php artisan vendor:publish --provider="dfumagalli\PermissionsUI\PermissionsUIServiceProvider" --tag="config"
sh
php artisan vendor:publish --provider="dfumagalli\PermissionsUI\PermissionsUIServiceProvider" --tag="lang"