Laravel Carbon heute Datumsformat
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Lively Leopard
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
$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'));