Reset or destroy
In an ajax request, calling another method is always affected by the current request
As shown above, these parameters should be removed in the next method
PHPz2017-05-16 16:52:10
Your $request
是从服务容器里取出来的吧?那你可以直接使用 Container
的 forgetInstance
或 setInstance
方法来重新绑定 Request
instance to the container, please refer to: Laravel API
As for how to create the Request
对象,可以使用 IlluminateHttpRequest::capture()
method.
伊谢尔伦2017-05-16 16:52:10
Can you be more specific about the question? It would be better if you put some code.