Uzyskaj rekord ostatnich 24 godzin w Laravel

Method # 1
 Mood::where('created_at', '>=', Carbon::now()->subDay())->get();

Method # 2
 Mood::whereBetween('created_at', [now()->subMinutes(1440), now()])->get();
shafeeque