mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
27 lines
585 B
PHP
27 lines
585 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\System\SectionResource\Pages;
|
|
|
|
use App\Filament\Resources\System\SectionResource;
|
|
use App\Models\SearchBox;
|
|
use Filament\Pages\Actions;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
class EditSection extends EditRecord
|
|
{
|
|
protected static string $resource = SectionResource::class;
|
|
|
|
protected function getActions(): array
|
|
{
|
|
return [
|
|
Actions\DeleteAction::make(),
|
|
];
|
|
}
|
|
|
|
protected function mutateFormDataBeforeSave(array $data): array
|
|
{
|
|
return SearchBox::formatTaxonomyExtra($data);
|
|
}
|
|
|
|
}
|