previousUrl; } protected function mutateFormDataBeforeSave(array $data): array { $data['enabled'] = (bool) $data['enabled']; return $data; } /** * @throws Halt */ protected function handleRecordUpdate(Account | Model $record, array $data): Model | Account { $user = Auth::user(); if (! $user) { throw new Halt('No authenticated user found.'); } return $this->handleRecordUpdateWithUniqueField($record, $data, $user); } }