PHP code example of sefirosweb / laravel-access-list
1. Go to this page and download the library: Download sefirosweb/laravel-access-list 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/ */
sefirosweb / laravel-access-list example snippets
'providers' => [
...
Sefirosweb\LaravelAccessList\LaravelAccessListServiceProvider::class,
]
Route::group(['middleware' => ['checkAcl:foo_role_1']], function () {
return view('foo_View');
});
php artisan migrate
php artisan vendor:publish --provider="Sefirosweb\LaravelAccessList\LaravelAccessListServiceProvider" --tag=acl-assets --force
php artisan vendor:publish --provider="Sefirosweb\LaravelAccessList\LaravelAccessListServiceProvider" --tag=config --force