I see in https://github.com/hannesvdvreken/guzzle-clockwork/blob/4.x/src/Support/Laravel/ServiceProvider.php
use $this->app->bind(ClinetInterface::class ...
to create an guzzlehttp\client instance.
but not working to me.
// provider/custom func register
$this->app->bind(Client::class, function () { throw new Exception(); })
// app.php
'prodiders' => [ app\provider\custom.php]
// app/console/commands/test.php
new GuzzleHttp\Client()
it's not work.
multi guzzlehttp use cases in my proj.
i want dynamic replace the Client
instance and inject a middleware direct return the fake response (mock data), how can i do this?
versions: laravel : 6.9.0 guzzlehttp/guzzle : 6.5.2