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

Array driver doesn't support eloquent constraints

Open brendanpetty opened this issue 7 months ago • 0 comments

Using https://github.com/teamtnt/laravel-scout-tntsearch-driver/?tab=readme-ov-file#constraints e.g.

$constraints = Item::query(); $constraints->where('draft', false); Item::search($query)->constrain($constraints);

works normally, but fails when testing using this driver.

I'm guessing it's not possible to fix this, but maybe is worth a note / known-issue somewhere in the documentation?

brendanpetty avatar Jul 15 '24 03:07 brendanpetty