Profile
Achievement
interviewqueries's Recent Snippets
- All /
« Prev 1 Next »
Default session time in PHP is 1440 seconds (24 minutes) and the Default session storage path is temporary folder/tmp on server.
0
6705
posted 5 years ago by interviewqueries
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
5333
posted 5 years ago by interviewqueries