between in laravel code example
Example 1: laravel between
$users = DB::table('users')
->whereBetween('votes', [1, 100])
->get();
Example 2: laravel where between cluse
$query->whereBetween('age', [$ageFrom, $ageTo]);
$users = DB::table('users')
->whereBetween('votes', [1, 100])
->get();
$query->whereBetween('age', [$ageFrom, $ageTo]);