回答編集履歴
1
編集
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
$model = Model::query()
|
4
4
|
|
5
|
-
->whereDate('created_at', '>', now()->sub
|
5
|
+
->whereDate('created_at', '>', now()->subWeek())
|
6
6
|
|
7
7
|
->latest()
|
8
8
|
|