PHP code example of panelis-php / user
1. Go to this page and download the library: Download panelis-php/user 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/ */
panelis-php / user example snippets
use Filament\Support\Contracts\HasLabel;
enum Permission: string implements HasLabel
{
case Browse = 'BrowseExample';
public function getLabel(): string
{
return __('example::permission.name_browse_example');
}
}
bash
composer bash
php artisan migrate
bash
php artisan panelis:sync-permissions
json
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan panelis:sync-permissions"
]