public function getRouteNameForModelClass($modelClass, $prefix = false)
    {
        $modelSlug = static::MODEL_ROUTE_NAME_PREFIX
                   . $this->getRouteSlugForModelClass($modelClass);

        if ( ! $prefix) {
            return $modelSlug;
        }

        return config('cms-core.route.name-prefix')
             . config('cms-models.route.name-prefix')
             . $modelSlug;
    }
public function getRouteNameForModelClass($modelClass, $prefix = false)
    {
        $modelSlug = static::MODEL_ROUTE_NAME_PREFIX
                   . $this->getRouteSlugForModelClass($modelClass);

        if ( ! $prefix) {
            return $modelSlug;
        }

        return config('cms-core.route.name-prefix')
             . config('cms-models.route.name-prefix')
             . $modelSlug;
    }
public function getRouteNameForModelClass ( $ modelClass , $ prefix = false ) { $ modelSlug = static :: MODEL_ROUTE_NAME_PREFIX . $ this -> getRouteSlugForModelClass ( $ modelClass ) ; if ( ! $ prefix ) { return $ modelSlug ; } return config ( 'cms-core.route.name-prefix' ) . config ( 'cms-models.route.name-prefix' ) . $ modelSlug ; }
Returns the route name for a given model FQN.

@param string $modelClass
@param bool   $prefix        whether to include CMS & model module prefixes
@return string
Returns the route name for a given model FQN .