validate([ 'password' => ['string', 'min:8', 'confirmed'], ]); $request->user()->update([ 'password' => bcrypt($request->password), 'password_must_be_changed' => false, ]); storeAuthEvent(EventType::PASSWORD_RESET, request()); return redirect(Nova::path()); } }