get('url.intended', url('/')), \PHP_URL_PATH); collect(Route::getRoutes()->getRoutes()) ->map(function (RoutingRoute $route) use (&$isBo, $path) { if (trim($path, '/') === $route->uri() and trim($route->getPrefix(), '/') === 'bo') { $isBo = true; } }); return $isBo ? auth('web')->guest() : auth('customer')->guest(); } }