![](/img/trans.png)
[英]Call to undefined method Illuminate\Http\Response::make() in Laravel 4.2?
[英]Laravel Return value is expected to be 'illuminate\Http\Response', 'string' returned
嗨,有這個功能,這是一個文件的返回路徑。
public function filecreate()
{
$myHelper = new MyHelper();
$path = $myHelper->create();
return $path;
}
phpStorm顯示警告
返回值應為“ illuminate \\ Http \\ Response”,返回“字符串”
您必須使用Response對象作為回報,並使用helper:
return response(%path_to_view);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.