回答編集履歴

2

修正

2020/04/21 02:54

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -1,4 +1,8 @@
1
1
  CakePHPとかと書き方混同してると思います。(たぶん)
2
+
3
+
4
+
5
+ does not existは「使えない」ではなく「存在しない」です。
2
6
 
3
7
 
4
8
 
@@ -10,8 +14,8 @@
10
14
 
11
15
  [response](https://readouble.com/laravel/6.x/ja/responses.html)はそもそも[Illuminate/Http/Response](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Http/Response.php)のインスタンスであってメソッドではないです。
12
16
 
13
- [Controller](https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Controller.php)をたどっていってもresponseというプロパティにResponseをセトしているところおそらくないのではないでしょうか。
17
+ [Controller](https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Controller.php)をたどっていってもresponseというメソはないのではないでしょうか。
14
18
 
15
19
 
16
20
 
17
- に`return $response($responseBody);`で良いの
21
+ 単に`$responseBody`をreturnするだけきませんか

1

修正

2020/04/21 02:54

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -10,4 +10,8 @@
10
10
 
11
11
  [response](https://readouble.com/laravel/6.x/ja/responses.html)はそもそも[Illuminate/Http/Response](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Http/Response.php)のインスタンスであってメソッドではないです。
12
12
 
13
+ [Controller](https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Controller.php)をたどっていってもresponseというプロパティにResponseをセットしているところはおそらくないのではないでしょうか。
14
+
15
+
16
+
13
17
  単純に`return $response($responseBody);`で良いのでは?