Solution:
To obtain an instance of the current HTTP request via dependency injection, you should type-hint the Illuminate\Http\Request
class on your controller method. The incoming request instance will automatically be injected by the service container.
So if you don’t want To obtain an instance of the current HTTP request
then remove it.