PHP code example of almas / laravel-permission
1. Go to this page and download the library: Download almas/laravel-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/ */
almas / laravel-permission example snippets
[email protected]
use Illuminate\Support\Facades\Route;
Route::permission();
{your-app-url}/permission
Route::permission('custom-prefix');
{your-app-url}/custom-prefix
@PermissionLink
user_permission()
user_permission('show-users')
bash
php artisan permission
bash
php artisan vendor:publish --tag=permission-config