onde entre em Laravel
$query->whereBetween('age', [$ageFrom, $ageTo]);
shafeeque
$query->whereBetween('age', [$ageFrom, $ageTo]);
DB::table('users')
->where('name', '=', 'John')
->orWhere(function ($query) {
$query->where('votes', '>', 100)
->where('title', '<>', 'Admin');
})
->get();