質問編集履歴

2

移し間違い

2021/06/03 16:41

投稿

taka3344
taka3344

スコア8

test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,7 @@
60
60
 
61
61
 
62
62
 
63
- $question1 = Question::where('id', $questionId)->first();
63
+ $question1 = Question::where('id', $questionId)->get();
64
64
 
65
65
  echo $question1;
66
66
 

1

修正

2021/06/03 16:41

投稿

taka3344
taka3344

スコア8

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ```
12
12
 
13
- $question1 = Question::where('id', $questionId)->first();
13
+ $question1 = Question::where('id', $questionId)->get();
14
14
 
15
15
  ```
16
16