We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89943d7 commit cbb9ee5Copy full SHA for cbb9ee5
README.MD
@@ -521,12 +521,12 @@ This is a perfect way to add extra options to your HTTP client or register a moc
521
``` php
522
class ServiceProvider extends \Illuminate\Support\ServiceProvider
523
{
524
- protected function register()
+ public function register()
525
526
$this->app->bind(\Swis\JsonApi\Client\Client::class, function ($app) {
527
if ($app->environment('testing')) {
528
$httpClient = new \Swis\Http\Fixture\Client(
529
- new \Swis\Http\Fixture\ResponseBuilder('/path/to/fixtures');
+ new \Swis\Http\Fixture\ResponseBuilder('/path/to/fixtures')
530
);
531
} else {
532
$httpClient = new \GuzzleHttp\Client(
0 commit comments