Laravel 6エラーSymfonyComponentHttpFoundationRequest::isMethod()should not be called statically

702 ワード

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;