Obtenez un enregistrement des dernières 24 heures à Laravel
Method # 1
Mood::where('created_at', '>=', Carbon::now()->subDay())->get();
Method # 2
Mood::whereBetween('created_at', [now()->subMinutes(1440), now()])->get();
shafeeque