user()->hasVerifiedEmail()) { return $request->wantsJson() ? new JsonResponse('', 204) : app(RedirectAsIntended::class, ['name' => 'email-verification']); } $request->user()->sendEmailVerificationNotification(); return app(EmailVerificationNotificationSentResponse::class); } }