/** * Create a new redirect response to a named route. * * @param string $route * @param array $parameters * @param int $status * @param array $headers * @return Illuminate\Http\RedirectResponse */ public function route($route, $parameters = array(), $status = 302, $headers = array()) { $path = $this->generator->route($route, $parameters); return $this->to($path, $status, $headers); }
/** * Generate a HTML link to a route * * An array of parameters may be specified to fill in URI segment wildcards. * * @param string $name * @param string $title * @param array $parameters * @param array $attributes * @return string */ public function route($name, $title = null, $parameters = array(), $attributes = array(), $absolute = true) { return $this->to($this->url->route($name, $parameters, $absolute), $title, $attributes); }