Profile
Achievement
interviewqueries's Recent SnippetsTagged query
- All /
« Prev 1 Next »
In Laravel you can use "IN" query as
Using Eloquent
$data = YourModel::whereIn('id', array(1, 2, 3))->get();
Using DB Query builder
$data = DB::table('your_table')->whereIn('id', array(1, 2, 3))->get();
0
5262
posted 5 years ago by interviewqueries