public function toRoute($route = null, $params = array(), $query = array())
    {
        if(!$route)
            return $this->refresh();

        $url = $this->urlFactory->create($route, $params, $query);

        return $this->to($url);
    }
public function toRoute($route = null, $params = array(), $query = array())
    {
        if(!$route)
            return $this->refresh();

        $url = $this->urlFactory->create($route, $params, $query);

        return $this->to($url);
    }
public function toRoute ( $ route = null , $ params = array ( ) , $ query = array ( ) ) { if ( ! $ route ) return $ this -> refresh ( ) ; $ url = $ this -> urlFactory -> create ( $ route , $ params , $ query ) ; return $ this -> to ( $ url ) ; }
Redirect by given route's name.
@param string $route
@param array $params
@param mixed $query
@return \Exedra\Http\Response
Redirect by given route s name .