spatie / laravel-query-builder

Easily build Eloquent queries from API requests
https://spatie.be/docs/laravel-query-builder
MIT License
4k stars 392 forks source link

Call to an undefined method App\Actions\Common\BaseQueryBuilder::allowedAppends() #876

Closed imfaisii closed 1 year ago

imfaisii commented 1 year ago

I am using a Query Trait to allowAppends. On the latest version of Spatie I get this error: Call to an undefined method App\Actions\Common\BaseQueryBuilder::allowedAppends()

QueryBuilder::for($query) ->allowedFilters(array_merge($model->getAllowedFilters(), $this->getExtraFilters())) ->allowedAppends(array_merge($model->getAllowedAppends(), $this->getExtraAppends()))