<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
henryonsoftware / filament-panel-switcher example snippets
use HenryOnSoftware\FilamentPanelSwitcher\FilamentPanelSwitcherPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(FilamentPanelSwitcherPlugin::make());
}
use Filament\Panel;
public function canAccessPanel(Panel $panel): bool
{
return match ($panel->getId()) {
'admin' => $this->isAdmin(),
default => true,
};
}