In laravel it is need to do create criteria to search in database where in some id list or others. Below shows how can we use where in Laravel.
DB::table('table')->whereIn('id', array(1, 2, 3))->get();
All query builder options available in below link:
Laravel Query Builder
DB::table('table')->whereIn('id', array(1, 2, 3))->get();
All query builder options available in below link:
Laravel Query Builder
No comments:
Post a Comment