app/Console/Commands/ControllerApiMakeCommand.php
protected function getRoutePath($name)
    {
        $routeName = str_replace_first('api.', '', $this->getRouteName($name));
        $routeNameExploded = explode('.', $routeName);
        $routePath = str_replace('.', '/', $routeName);
        if ($this->option('parent') && count($routeNameExploded) >= 2) {
            $routePath = str_replace_last('/', '.', $routePath);
        }
        return $routePath;
    }
protected function getRoutePath($name)
    {
        $routeName = str_replace_first('api.', '', $this->getRouteName($name));
        $routeNameExploded = explode('.', $routeName);
        $routePath = str_replace('.', '/', $routeName);
        if ($this->option('parent') && count($routeNameExploded) >= 2) {
            $routePath = str_replace_last('/', '.', $routePath);
        }
        return $routePath;
    }
protected function getRoutePath ( $ name ) { $ routeName = str_replace_first ( 'api.' , '' , $ this -> getRouteName ( $ name ) ) ; $ routeNameExploded = explode ( '.' , $ routeName ) ; $ routePath = str_replace ( '.' , '/' , $ routeName ) ; if ( $ this -> option ( 'parent' ) && count ( $ routeNameExploded ) >= 2 ) { $ routePath = str_replace_last ( '/' , '.' , $ routePath ) ; } return $ routePath ; }
Get the route path.

@param  string  $name
@return string
Get the route path .