📌  相关文章
📜  在 laravel eloquent 中查找下 7 个日期数据 - PHP 代码示例

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

代码示例1
$startDate = Carbon::today();
$endDate = Carbon::today()->addDays(7);
$invoices = Invoice::whereBetween('due_date', [$startDate, $endDate])->get();
// Replace "due_date" with your actual column name
// Check your model names, they should be singular and not plural.

dd($invoices);