InterviewSolution
Saved Bookmarks
| 1. |
How to add multiple AND conditions in laravel query? |
|
Answer» We can add multiple AND operator at in a SINGLE where() conditions as well as we can also add separate where() for particular AND condition. Example DB::table('client')->where('status', '=', 1)->where('name', '=', 'bestinterviewquestion.com')->get();DB::table('client')->where(['status' => 1, 'name' => 'bestinterviewquestion.com'])->get(); |
|