PHP code example of howdu / filament-record-switcher
1. Go to this page and download the library: Download howdu/filament-record-switcher 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/ */
howdu / filament-record-switcher example snippets
use Howdu\FilamentRecordSwitcher\FilamentRecordSwitcherPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(
FilamentRecordSwitcherPlugin::make(),
);
}
}
use Howdu\FilamentRecordSwitcher\Filament\Concerns\HasRecordSwitcher;
class EditCategory extends EditRecord
{
use HasRecordSwitcher;
}