In this article, We will explain to you how to use the WhereTime query in laravel(laravel eloquent WhereTime query example). here we will give you a simple example of laravel eloquent WhereTime query.

The laravel eloquent provides many types of eloquent methods. The WhereTime method compares a column’s value to the search a specific time 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.

$students = DB::table('students')
             ->whereTime('created_at', '=', '11:20:45')
             ->get();