check()) { $loginUrlPath = parse_url(route('front.login.view'), PHP_URL_PATH); // if ($request->path() === ltrim($loginUrlPath, '/')) { // return redirect()->route('member.index'); // } } return $next($request); } }