回答編集履歴
2
一部修正しました
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
|
7
|
-
App\Models\User::find(
|
7
|
+
App\Models\User::find(81)->user_role();
|
8
8
|
|
9
9
|
```
|
10
10
|
|
1
一部修正しました
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
-
App\Models\User::where('id', '81')->
|
23
|
+
App\Models\User::with('user_role')->where('id', '81')->get();
|
24
24
|
|
25
25
|
```
|
26
26
|
|