getPathInfo(),$this->whiteList)===false) $this->authenticate($request, $guards); return $next($request); } /** * Get the path the user should be redirected to when they are not authenticated. * * @param Request $request * @return string */ protected function redirectTo($request) :string { return "/login"; } }