'', 'password' => '', 'password_confirmation' => '', ]; /** * Update the user's password. * * @param \Laravel\Fortify\Contracts\UpdatesUserPasswords $updater * @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(); } /** * Render the component. * * @return \Illuminate\View\View */ public function render() { return view('profile.update-password-form'); } }