How to Create Multiple Where Clause Query Using Laravel Eloquent?

March 31, 2021

where clause with and operator.

 $companies = Company::where('country_id', $country->id)->where('is_display',1)->get();

where clause with or operator.

$companies = Company::where('country_id', $country->id)->orWhere('is_display',1)->get();