Post
Post::whereDate('created_at', Carbon::today())->count();
Similarly to get count of records which are updated today, you can use the following eloquent query
Post::whereDate('updated_at', Carbon::today())->count();
Post
Post::whereDate('created_at', Carbon::today())->count();
Similarly to get count of records which are updated today, you can use the following eloquent query
Post::whereDate('updated_at', Carbon::today())->count();
Written by Tushar