laravel 6 使用Request 时报错Request::isMethod() should not be called statically
ErrorException
Non-static method Symfony\Component\HttpFoundation\Request::isMethod() should not be called statically
找到的英文提示是:The error message is due to the call not going through the Request facade。
解决办法是将:
use Illuminate\Http\Request;
改成:
use Request;