Example #1
0
 /**
  * Prepare pipeline requests and send through router.
  *
  * @param $request
  *
  * @return mixed
  */
 protected function sendRequestThroughRouter($request)
 {
     $this->app->bootApplication($request);
     $this->pipeline = new Pipeline($this->app);
     return $this->pipeline->send($request)->through($this->parseMiddlewareToPipelines($this->getMiddleware()), 'handle')->then($this->dispatchToRouter())->run();
 }