Laravel, где создается_ат сегодня
$posts = Post::whereDate('created_at', Carbon::today())->get();
Fahim Foysal
$posts = Post::whereDate('created_at', Carbon::today())->get();
$q->whereDay('created_at', '=', date('d'));
$q->whereMonth('created_at', '=', date('m'));
$q->whereYear('created_at', '=', date('Y'));
$q->where('created_at', '>=', date('Y-m-d').' 00:00:00'));