Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttp\Psr7\Request

Ansib Raza picture Ansib Raza · Nov 27, 2017 · Viewed 9.4k times · Source

When posting form I am getting this exception

Unresolvable dependency resolving [Parameter #0 [ $method ]] in class GuzzleHttp\Psr7\Request

Searched and tried many ways to solve this but no progress. Seems that my problem is same as this issue

Any positive response will be appreciated. Thank You.

Answer

Nirav Sheth picture Nirav Sheth · Nov 28, 2017

I had the same error and found solution by removing following line.

use GuzzleHttp\Psr7\Request;

and use following Request class instead.

use Illuminate\Http\Request;

I hope it will help you too.