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; } Auth::user()->update([ 'password' => Hash::make($validated['password']), ]); $this->reset('current_password', 'password', 'password_confirmation'); $this->dispatch('password-updated'); } }; ?>

{{ __('Update Password') }}

{{ __('Ensure your account is using a long, random password to stay secure.') }}

{{ __('Save') }} {{ __('Saved.') }}