service = $service; } protected function getHeaderActions(): array { return [ $this->getCreateFormAction()->formId('form'), ]; } protected function getFormActions(): array { return []; } protected function handleRecordCreation(array $data): Model { try { return $this->service->handle($data); } catch (PDOException $exception) { Notification::make() ->title(trans('admin/databasehost.error')) ->body($exception->getMessage()) ->color('danger') ->icon('tabler-database') ->danger() ->send(); throw new Halt(); } } }