質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,43 +1,18 @@
|
|
1
|
-
下記の内容を行うと、town_commentsに対する結果はインクリメント、タイムスタンプ、ブール値の存在だけ
|
1
|
+
下記の内容を行うと、town_commentsに対する結果はインクリメント、タイムスタンプ、ブール値の存在だけを表示されます。
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
```lang-<ここに言語を入力>
|
6
2
|
|
7
3
|
$city = City::with('station')->where('name',$town)->first();
|
8
|
-
|
9
4
|
$townID = 1;
|
10
|
-
|
11
5
|
$townComments = TownComment::where('town_id',$townID)->get();
|
12
|
-
|
13
6
|
$city->town_comments = $townComments;
|
14
7
|
|
15
|
-
```
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
何を間違えているのでしょうか
|
8
|
+
何を間違えているのでしょうか。
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
```lang-<ここに言語を入力>
|
24
9
|
|
25
10
|
{
|
26
|
-
|
27
|
-
|
11
|
+
id: "1",
|
28
|
-
|
29
|
-
|
12
|
+
name: "saitama",
|
30
|
-
|
31
|
-
|
13
|
+
similar_stations: {
|
32
|
-
|
33
|
-
|
14
|
+
timestamps: false,
|
34
|
-
|
35
|
-
|
15
|
+
incrementing: true,
|
36
|
-
|
37
|
-
|
16
|
+
exists: true
|
38
|
-
|
39
|
-
}
|
40
|
-
|
41
17
|
}
|
42
|
-
|
43
|
-
|
18
|
+
}
|