回答編集履歴

2

追記

2020/09/20 05:30

投稿

phper.k
phper.k

スコア3923

test CHANGED
@@ -636,9 +636,9 @@
636
636
 
637
637
  <th>メールアドレス</th>
638
638
 
639
- <th>最近借りた本</th>
639
+ <th>本日貸出した本</th>
640
-
640
+
641
- <th>貸日時</th>
641
+ <th>貸出日時</th>
642
642
 
643
643
  </tr>
644
644
 

1

修正

2020/09/20 05:30

投稿

phper.k
phper.k

スコア3923

test CHANGED
@@ -576,7 +576,7 @@
576
576
 
577
577
  $users = User::with(['books' => function ($query) {
578
578
 
579
- $query->orderByDesc('pivot_created_at');
579
+ $query->whereDate('pivot_created_at', now());
580
580
 
581
581
  }])->get();
582
582