I'm trying to call the Illuminate\Http\Request has method from one of my controllers.
Request::has('fields')
与文档完全一致,但我却抛出了一个错误:
Non-static method Illuminate\Http\Request::has() should not be called statically, assuming $this from incompatible context
我不确定我在这里做错了什么,我试着尽可能地遵循文档.