Laravel 5.1 报错:[AppHttpRequestsRequest] is not instantiable

Posted 学知无涯

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Laravel 5.1 报错:[AppHttpRequestsRequest] is not instantiable相关的知识,希望对你有一定的参考价值。

Laravel 5.1 报错:[AppHttpRequestsRequest] is not instantiable


 

错误提示:

Whoops, looks like something went wrong.
1/1
BindingResolutionException in Container.php line 749:
Target [AppHttpRequestsRequest] is not instantiable.
... ...
... ...

发生情境:

在控制器中:

use AppHttpRequestsRequest;

public function create(Request $request){}

解决办法:

使用这个路径的请求类

use IlluminateHttpRequest;

 

 

 



以上是关于Laravel 5.1 报错:[AppHttpRequestsRequest] is not instantiable的主要内容,如果未能解决你的问题,请参考以下文章