wherebetween in laravel

55

wherebetween in laravel -

$query->whereBetween('age', [$ageFrom, $ageTo]);

wherebetween laravel -

DB::table('users')
            ->where('name', '=', 'John')
            ->orWhere(function ($query) {
                $query->where('votes', '>', 100)
                      ->where('title', '<>', 'Admin');
            })
            ->get();

Comments

Submit
0 Comments