protected function getModelRouteNameSegment($routeName = null)
    {
        $routeName = $routeName ?: $this->getRouteName();

        $combinedPrefix = config('cms-core.route.name-prefix')
                        . config('cms-models.route.name-prefix')
                        . static::MODEL_ROUTE_NAME_PREFIX;

        if ( ! starts_with($routeName, $combinedPrefix)) {
            return false;
        }

        return substr($routeName, strlen($combinedPrefix));
    }
protected function getModelRouteNameSegment($routeName = null)
    {
        $routeName = $routeName ?: $this->getRouteName();

        $combinedPrefix = config('cms-core.route.name-prefix')
                        . config('cms-models.route.name-prefix')
                        . static::MODEL_ROUTE_NAME_PREFIX;

        if ( ! starts_with($routeName, $combinedPrefix)) {
            return false;
        }

        return substr($routeName, strlen($combinedPrefix));
    }
protected function getModelRouteNameSegment ( $ routeName = null ) { $ routeName = $ routeName ? : $ this -> getRouteName ( ) ; $ combinedPrefix = config ( 'cms-core.route.name-prefix' ) . config ( 'cms-models.route.name-prefix' ) . static :: MODEL_ROUTE_NAME_PREFIX ; if ( ! starts_with ( $ routeName , $ combinedPrefix ) ) { return false ; } return substr ( $ routeName , strlen ( $ combinedPrefix ) ) ; }
Returns the route name part that represents the model.

@param string|null $routeName    if not set, uses current route
@return false|string
Returns the route name part that represents the model .