回答編集履歴
1
追記
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```php
|
6
6
|
|
7
|
-
$user = User::with(['books'])->latest()
|
7
|
+
$user = User::with(['books'])->latest();
|
8
8
|
|
9
9
|
foreach ($user->books as $book) {
|
10
10
|
|