123456789101112131415161718192021222324252627282930 |
- <?php
-
- namespace App\Filament\Company\Resources\Banking\AccountResource\Pages;
-
- use App\Filament\Company\Resources\Banking\AccountResource;
- use Filament\Resources\Pages\EditRecord;
-
- class EditAccount extends EditRecord
- {
- protected static string $resource = AccountResource::class;
-
- protected function getHeaderActions(): array
- {
- return [
- //
- ];
- }
-
- protected function getRedirectUrl(): string
- {
- return $this->getResource()::getUrl('index');
- }
-
- protected function mutateFormDataBeforeSave(array $data): array
- {
- $data['enabled'] = (bool) ($data['enabled'] ?? false);
-
- return $data;
- }
- }
|