protected function sendRequestThroughRouter(Request $request)
    {
        return (new Pipeline($this->app))->send($request)->then(function ($request) {

            /**
             * @var Response $response
             */
            $response = $this->router->dispatch($request);

            if (property_exists($response, 'exception') && $response->exception instanceof Exception) {
                throw $response->exception;
            }

            return $response;
        });
    }
protected function sendRequestThroughRouter(Request $request)
    {
        return (new Pipeline($this->app))->send($request)->then(function ($request) {

            /**
             * @var Response $response
             */
            $response = $this->router->dispatch($request);

            if (property_exists($response, 'exception') && $response->exception instanceof Exception) {
                throw $response->exception;
            }

            return $response;
        });
    }
protected function sendRequestThroughRouter ( Request $ request ) { return ( new Pipeline ( $ this -> app ) ) -> send ( $ request ) -> then ( function ( $ request ) { /**
             * @var Response $response
             */ $ response = $ this -> router -> dispatch ( $ request ) ; if ( property_exists ( $ response , 'exception' ) && $ response -> exception instanceof Exception ) { throw $ response -> exception ; } return $ response ; } ) ; }
Send the request through the Songshenzong router.

@param Request $request

@return Response
@throws \Exception
Send the request through the Songshenzong router .