PHP code example of muazzambuilds / filament-white-label
1. Go to this page and download the library: Download muazzambuilds/filament-white-label 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/ */
muazzambuilds / filament-white-label example snippets
use MuazzamBuilds\FilamentWhiteLabel\WhiteLabelPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
WhiteLabelPlugin::make()
->navigationGroup('Settings')
->navigationSort(99)
->authorize(fn (): bool => auth()->user()?->is_admin ?? true),
);
}