plainPassword = $data['password']; $data['password'] = Hash::make($data['password']); return $data; } protected function afterCreate(): void { session()->flash('cliente_username_plain', $this->record->username); session()->flash('cliente_password_plain', $this->plainPassword); } protected function getRedirectUrl(): string { return $this->getResource()::getUrl('view', ['record' => $this->getRecord()]); } }