On January 15, 2021 . By CodimTh Category: Web Laravel Laravel Eloquent Query Using WHERE with OR AND OR Example how to make Eloquent Query Using WHERE with OR AND OR: Model::where(function ($query) { $query->where('a', '=', 1) ->orWhere('b', '=', 1); })->where(function ($query) { $query->where('c', '=', 1) ->orWhere('d', '=', 1); }); Tags : Laravel Laravel tutoriel Tips Laravel Previous PostLaravel where on relationship objectNext PostDrupal 9 - change the temporary file directory path without the UI Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments