public function name($name)
    {
        $this->name = $name;

        $routes = (array) $this->config['app.routes'];

        $this->config['app.routes'] = array_merge(
            $routes,
            [$name => $this->getPath()]
        );
    }
public function name($name)
    {
        $this->name = $name;

        $routes = (array) $this->config['app.routes'];

        $this->config['app.routes'] = array_merge(
            $routes,
            [$name => $this->getPath()]
        );
    }
public function name ( $ name ) { $ this -> name = $ name ; $ routes = ( array ) $ this -> config [ 'app.routes' ] ; $ this -> config [ 'app.routes' ] = array_merge ( $ routes , [ $ name => $ this -> getPath ( ) ] ) ; }
To give a name to the road

@param string $name
To give a name to the road