public function modelSlug($model)
    {
        if (is_object($model)) {
            $model = get_class($model);
        }

        return str_replace('\\', '-', strtolower($model));
    }
public function modelSlug($model)
    {
        if (is_object($model)) {
            $model = get_class($model);
        }

        return str_replace('\\', '-', strtolower($model));
    }
public function modelSlug ( $ model ) { if ( is_object ( $ model ) ) { $ model = get_class ( $ model ) ; } return str_replace ( '\\' , '-' , strtolower ( $ model ) ) ; }
Returns the model slug for a model or model FQN.

@param string|Model $model
@return string
Returns the model slug for a model or model FQN .