/** * Replace the request input with the previous request input. * * @return void */ protected function replaceRequestInput() { array_pop($this->requestStack); $previous = end($this->requestStack); $this->router->setCurrentRequest($previous); $this->request->replace($previous->input()); }
/** * Replace the request instance with the previous request instance. * * @return void */ protected function replaceRequestInstance() { array_pop($this->requestStack); $this->container->instance('request', end($this->requestStack)); $this->router->setCurrentRequest($this->container['request']); }