📜  eloquent 获取超过 2 天的记录 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:03.950000             🧑  作者: Mango

代码示例1
$data = YOURMODEL::where('created_at', '<=', Carbon::now()->subDays(2)->toDateTimeString())->get();