'', 'password' => '', 'password_confirmation' => '', ]; /** * Update the user's password. * * @return void */ public function updatePassword(UpdatesUserPasswords $updater) { $this->resetErrorBag(); $updater->update(Auth::user(), $this->state); if (request()->hasSession()) { request()->session()->put([ 'password_hash_'.Auth::getDefaultDriver() => Auth::user()->getAuthPassword(), ]); } $this->state = [ 'current_password' => '', 'password' => '', 'password_confirmation' => '', ]; $this->dispatch('saved'); } /** * Get the current user of the application. * * @return mixed */ public function getUserProperty() { return Auth::user(); } }; ?> {{ __('Update Password') }} {{ __('Ensure your account is using a long, random password to stay secure.') }}
{{ __('Saved.') }} {{ __('Save') }}