PHP code example of sehsah / filament-resource-manager
1. Go to this page and download the library: Download sehsah/filament-resource-manager 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/ */
sehsah / filament-resource-manager example snippets
use MahmoudSehsah\FilamentResourceManager\FilamentResourceManagerPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(
FilamentResourceManagerPlugin::make()
->authorize(fn (): bool => auth()->user()?->is_admin ?? false)
);
}