validate([ 'password' => ['required', 'string'], ]); if (! Auth::guard('web')->validate([ 'email' => Auth::user()->email, 'password' => $this->password, ])) { throw ValidationException::withMessages([ 'password' => __('auth.password'), ]); } session(['auth.password_confirmed_at' => time()]); $this->redirectIntended(default: route('dashboard', absolute: false), navigate: true); } }; ?>