validate([ 'current_password' => $this->currentPasswordRules(), 'password' => $this->passwordRules(), ]); } catch (ValidationException $e) { $this->reset('current_password', 'password', 'password_confirmation'); throw $e; } Auth::user()->update([ 'password' => $validated['password'], ]); $this->reset('current_password', 'password', 'password_confirmation'); $this->dispatch('password-updated'); } }; ?>
@include('partials.settings-heading') {{ __('Password Settings') }}
{{ __('Save') }}
{{ __('Saved.') }}