select all where date is today in laravel 7 code example
Example 1: laravel where creation is today carbon
$posts = Post::whereDate('created_at', Carbon::today())->get();
Example 2: where('created_at', '=', date('Y-m-d'));
$q->whereDate('created_at', '=', date('Y-m-d'));