PHP code example of helingfeng / simple-permission

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

    

helingfeng / simple-permission example snippets

shell
php artisan vendor:publish
shell
php artisan migrate
php artisan db:seed --class=LaravelUsersSeeder

shell
php artisan command:menu
shell
php artisan command:permission
shell
php artisan command:user
markdown
Route::group(['middleware' => 'permission:platform.dashboard.orders.show'], function(Router $router){
    //... your router
});