protected function getQueryBuilderForNonCmsModelClass($modelClass)
    {
        if ( ! is_a($modelClass, Model::class, true)) {
            // @codeCoverageIgnoreStart
            throw new UnexpectedValueException("{$modelClass} is not an Eloquent model");
            // @codeCoverageIgnoreEnd
        }

        /** @var Model $model */
        $model = new $modelClass;

        return $model::query();
    }
protected function getQueryBuilderForNonCmsModelClass($modelClass)
    {
        if ( ! is_a($modelClass, Model::class, true)) {
            // @codeCoverageIgnoreStart
            throw new UnexpectedValueException("{$modelClass} is not an Eloquent model");
            // @codeCoverageIgnoreEnd
        }

        /** @var Model $model */
        $model = new $modelClass;

        return $model::query();
    }
protected function getQueryBuilderForNonCmsModelClass ( $ modelClass ) { if ( ! is_a ( $ modelClass , Model :: class , true ) ) { // @codeCoverageIgnoreStart throw new UnexpectedValueException ( "{$modelClass} is not an Eloquent model" ) ; // @codeCoverageIgnoreEnd } /** @var Model $model */ $ model = new $ modelClass ; return $ model :: query ( ) ; }
Returns a query builder instance for a given model class.

@param string $modelClass
@return \Illuminate\Database\Eloquent\Builder
Returns a query builder instance for a given model class .