Eloquent whereTime Query Laravel

whereTime Query Use in Laravel 6.0, Laravel 5.8, Laravel 5.7, whereTime Query Use in Laravel 5.6, whereTime Query Use in Laravel 5.5, whereTime Query Use in Laravel 5.4, whereTime Query Use in Laravel 5.3, whereTime Query Use in Laravel 5.2

Hello Friends Today I will tell you through tutorials that whereTime query is used in the laravel framework.

The whereTime method may be used to compare a column’s value against a specific time.

$time = "11:20:45';
$blog = DB::table('blogs')
->whereTime('created_at', '=', $time)
->get();

By creating a model of your table, this query can be written in this way

$time = "11:20:45';
$blog = Blog::whereTime('created_at', '=', $time)->get();