user()->update([ 'password' => $request->password, ]); Inertia::flash('toast', ['type' => 'success', 'message' => __('Password updated.')]); return back(); } }