/** * @param null $path * @param array $params * @param string $subdomain * @return mixed */ public function path($path = null, $params = [], $subdomain = '') { if (!is_null($path)) { return $this->app->get('routing')->getCollection()->getRoutePath($path, $params, $subdomain); } return $this->app->get('request')->root(); }
/** * @return Response */ public function response() { return $this->app->get('routing')->getResponse(); }