How to add multiple AND conditions in laravel query?

We can add multiple AND operator at in a single where() conditions as well as we can also add seprate where() for particular AND condition.


DB::table('client')->where('status', '=', 1)->where('name', '=', 'bestinterviewquestion.com')->get();

DB::table('client')->where(['status' => 1, 'name' => 'bestinterviewquestion.com'])->get();

Suggest An Answer

No suggestions avaliable!

Latest post from Laravel Interview Questions

Ask Question