validate([ 'current_password' => ['required', 'string', 'current_password'], 'password' => ['required', 'string', Password::defaults(), 'confirmed'], ]); } catch (ValidationException $e) { $this->reset('current_password', 'password', 'password_confirmation'); throw $e; } app(PasswordChanger::class)->change(Auth::user(), $validated['password'], session()->driver()); $this->reset('current_password', 'password', 'password_confirmation'); $this->dispatch('password-updated'); } }; ?>
@include('partials.settings-heading')
{{ __('Save') }} {{ __('Saved.') }}