Password::defaults()->toPasswordRulesString(), ]); } public function update(PasswordUpdateRequest $request): RedirectResponse { $request->user()->update(['password' => $request->password]); return Inertia::flash('toast', ['type' => 'success', 'message' => 'Kata sandi berhasil diperbarui.'])->back(); } }