protected function replaceRouteNames(&$stub, $modelName, $routesPrefix, array $actions = null)
    {
        foreach (($actions ?: $this->actions) as $action) {
            $routeName = $this->getDotNotationName($modelName, $routesPrefix, $action);
            $routeTemplate = $this->getRouteName($action);
            $stub = $this->strReplace($routeTemplate, $routeName, $stub);
        }

        return $this;
    }
protected function replaceRouteNames(&$stub, $modelName, $routesPrefix, array $actions = null)
    {
        foreach (($actions ?: $this->actions) as $action) {
            $routeName = $this->getDotNotationName($modelName, $routesPrefix, $action);
            $routeTemplate = $this->getRouteName($action);
            $stub = $this->strReplace($routeTemplate, $routeName, $stub);
        }

        return $this;
    }
protected function replaceRouteNames ( & $ stub , $ modelName , $ routesPrefix , array $ actions = null ) { foreach ( ( $ actions ? : $ this -> actions ) as $ action ) { $ routeName = $ this -> getDotNotationName ( $ modelName , $ routesPrefix , $ action ) ; $ routeTemplate = $ this -> getRouteName ( $ action ) ; $ stub = $ this -> strReplace ( $ routeTemplate , $ routeName , $ stub ) ; } return $ this ; }
Replaces the route names for all the provided actions

@param string $stub
@param string $modelName
@param string $routesPrefix
@param array $actions

@return $this
Replaces the route names for all the provided actions