protonemedia / laravel-cross-eloquent-search

Laravel package to search through multiple Eloquent models. Supports sorting, pagination, scoped queries, eager load relationships and searching through single or multiple columns.
https://protone.media/blog/search-through-multiple-eloquent-models-with-our-latest-laravel-package
MIT License
1.09k stars 80 forks source link

Call to undefined method ProtoneMedia\LaravelCrossEloquentSearch\Searcher::includeModelType() #46

Closed rodinmehr closed 2 years ago

rodinmehr commented 2 years ago

I'm using laravel-cross-eloquent-search version 2.4. When I was trying to use ->includeModelType() to get the type I got the following error:

Call to undefined method ProtoneMedia\LaravelCrossEloquentSearch\Searcher::includeModelType()

I checked the Searcher.php file, but there isn't any method with this name (I found only getModelsPerType() method). How can I know which model is producing the result? How can I fix this problem?

pascalbaljet commented 2 years ago

You need to update to v2.6 :)