protected function makeModelDisplayValueFromModelClass($modelClass)
    {
        $stripPrefix = config('cms-models.collector.models-namespace');

        if ($stripPrefix && starts_with($modelClass, $stripPrefix)) {
            $modelClass = trim(substr($modelClass, 0, strlen($stripPrefix)), '\\');
        }

        return ucfirst(str_replace('\\', ' ', $modelClass));
    }
protected function makeModelDisplayValueFromModelClass($modelClass)
    {
        $stripPrefix = config('cms-models.collector.models-namespace');

        if ($stripPrefix && starts_with($modelClass, $stripPrefix)) {
            $modelClass = trim(substr($modelClass, 0, strlen($stripPrefix)), '\\');
        }

        return ucfirst(str_replace('\\', ' ', $modelClass));
    }
protected function makeModelDisplayValueFromModelClass ( $ modelClass ) { $ stripPrefix = config ( 'cms-models.collector.models-namespace' ) ; if ( $ stripPrefix && starts_with ( $ modelClass , $ stripPrefix ) ) { $ modelClass = trim ( substr ( $ modelClass , 0 , strlen ( $ stripPrefix ) ) , '\\' ) ; } return ucfirst ( str_replace ( '\\' , ' ' , $ modelClass ) ) ; }
Returns displayable text for a given model class, based only on the class name.

@param string $modelClass
@return string
Returns displayable text for a given model class based only on the class name .