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