laravel eloquent WhereDay query example
In this article, We will explain to you how to use the WhereDay query in laravel(where day query in laravel). The laravel eloquent provides many types of eloquent methods.
The WhereDay method compares a column’s value to the search a specific day into the database and if match any date into the database then it will return of data.
So you can see below the following example.
1 2 3 | $students = DB::table('students') ->whereDay('created_at', '20') ->get(); |
Please follow and like us: