php - Laravel Spatie Query Builder - create OR condition for filters
Get 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
past-projects?filter[company_id]=${companyId}&filter[name]=${search}&filter[summary]={company_id}
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.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: dompdf image not found or type unknown
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.
Similar questions
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.