public function route($name, $details = [])
    {
        $this->route     = route($name, $details);
        $this->routeName = $name;

        return $this;
    }
public function route($name, $details = [])
    {
        $this->route     = route($name, $details);
        $this->routeName = $name;

        return $this;
    }
public function route ( $ name , $ details = [ ] ) { $ this -> route = route ( $ name , $ details ) ; $ this -> routeName = $ name ; return $ this ; }
Add a route to redirect the request to.

@param string $name
@param array  $details

@return $this
Add a route to redirect the request to .