src/Routing/RouteCollection.php
public function getByName($name)
    {
        return isset($this->names[$name]) ? $this->names[$name] : null;
    }
public function getByName($name)
    {
        return isset($this->names[$name]) ? $this->names[$name] : null;
    }
public function getByName ( $ name ) { return isset ( $ this -> names [ $ name ] ) ? $ this -> names [ $ name ] : null ; }
Get a route by name.

@param string $name

@return \Dingo\Api\Routing\Route|null
Get a route by name .