make('routePath')->get(); // $routeMiddleware = config('catch.route_middleware'); if ($domain) { $router->domain($domain, function () use ($router, $paths) { foreach ($paths as $path) { include $path; } }); } else { $router->group(function () use ($router, $paths) { foreach ($paths as $path) { include $path; } }); } } }