php - Laravel Spatie Query Builder - create OR condition for filtersGet the solution ↓↓↓
I am using laravel spatie for filtering the model i have following filters in allowed filter array
$this->allowedFilters = [ 'name', AllowedFilter::exact('company_id'), 'location', 'summary', 'client_name', ];
when I make request like
it searches for the data which exactly contains all the passed search params with AND condition and returns no results if any of passed param do not match. I want to get results if any of the passed param match.
Any help will be appreciated.
People are also looking for solutions of the problem: your lock file does not contain a compatible set of packages. please run composer update.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.