wantsJson() ? new JsonResponse('', 204) : redirect()->intended(Fortify::redirects('login')); } }