How to Get Todays Record From Database In Laravel

Hello Laravel Devs, in this tutorial i will show you how to get todays record from database in Laravel. If you don't know how to fetch record todays only then this tutorial is for you. From this tutorial you will get todays record in laravel.

Sometimes you know that we need to show such kind of data like todays sell, todays joined users, todays profit etc. Using this example query you will be able to fetch todays record from database in Laravel.

Example code:

\App\Model::where('date',\Carbon\Carbon::today())->get();

 

Read also: Laravel Hash Password Tutorial Which You Need To Know

 

Hope it can help you.