src/Routing/RouteCollection.php
protected function addLookups(Route $route)
    {
        $action = $route->getAction();

        if (isset($action['as'])) {
            $this->names[$action['as']] = $route;
        }

        if (isset($action['controller'])) {
            $this->actions[$action['controller']] = $route;
        }
    }
protected function addLookups(Route $route)
    {
        $action = $route->getAction();

        if (isset($action['as'])) {
            $this->names[$action['as']] = $route;
        }

        if (isset($action['controller'])) {
            $this->actions[$action['controller']] = $route;
        }
    }
protected function addLookups ( Route $ route ) { $ action = $ route -> getAction ( ) ; if ( isset ( $ action [ 'as' ] ) ) { $ this -> names [ $ action [ 'as' ] ] = $ route ; } if ( isset ( $ action [ 'controller' ] ) ) { $ this -> actions [ $ action [ 'controller' ] ] = $ route ; } }
Add route lookups.

@param \Dingo\Api\Routing\Route $route

@return void
Add route lookups .