protected function cloneLaravelRouter()
    {
        $router = clone $this->app['router'];
        $router->aliasMiddleware('api.auth', NodesHttpMiddlewareAuth::class);
        $router->aliasMiddleware('api.controllers', NodesHttpMiddlewarePrepareController::class);
        $router->aliasMiddleware('api.throttle', NodesHttpMiddlewareRateLimit::class);
        $router->aliasMiddleware('api.useragent', NodesHttpMiddlewareUserAgent::class);
        $router->aliasMiddleware('api.meta', NodesHttpMiddleware::class);

        return $router;
    }
protected function cloneLaravelRouter()
    {
        $router = clone $this->app['router'];
        $router->aliasMiddleware('api.auth', NodesHttpMiddlewareAuth::class);
        $router->aliasMiddleware('api.controllers', NodesHttpMiddlewarePrepareController::class);
        $router->aliasMiddleware('api.throttle', NodesHttpMiddlewareRateLimit::class);
        $router->aliasMiddleware('api.useragent', NodesHttpMiddlewareUserAgent::class);
        $router->aliasMiddleware('api.meta', NodesHttpMiddleware::class);

        return $router;
    }
protected function cloneLaravelRouter ( ) { $ router = clone $ this -> app [ 'router' ] ; $ router -> aliasMiddleware ( 'api.auth' , NodesHttpMiddlewareAuth :: class ) ; $ router -> aliasMiddleware ( 'api.controllers' , NodesHttpMiddlewarePrepareController :: class ) ; $ router -> aliasMiddleware ( 'api.throttle' , NodesHttpMiddlewareRateLimit :: class ) ; $ router -> aliasMiddleware ( 'api.useragent' , NodesHttpMiddlewareUserAgent :: class ) ; $ router -> aliasMiddleware ( 'api.meta' , NodesHttpMiddleware :: class ) ; return $ router ; }
Clone the Laravel router and set the middleware on the cloned router.

@return \Illuminate\Routing\Router
Clone the Laravel router and set the middleware on the cloned router .