laravel eloquent WhereBetween query example
In this article, We will explain to you how to use whereBetween query in laravel(where between query in laravel). The laravel eloquent provides many types of eloquent methods.
The whereBetween method will return the data column’s value is between two values like check between two dates.
So you can see below the following example.
$students = DB::table('students')
->whereBetween('id', [1, 20])
Please follow and like us: