laravel-scout-mysql-driver icon indicating copy to clipboard operation
laravel-scout-mysql-driver copied to clipboard

Search within multiple tables/models

Open basvandertogt opened this issue 6 years ago • 3 comments

Is it possible to search within multiple tables/models and get the result in a singel collection? I can't find something about it in the manual.

basvandertogt avatar Apr 09 '18 08:04 basvandertogt

Is it possible to search within multiple tables/models and get the result in a singel collection? I can't find something about it in the manual.

For get results in single collection use mysql union. Tutorial is here

kolotovio avatar Nov 15 '18 17:11 kolotovio

@kolotovio So need to use laravel query builder without $model->search()?

zhd4n avatar Jan 15 '19 07:01 zhd4n

Has anyone found a solution to this?

notflip avatar Aug 06 '19 12:08 notflip