Skip to content

Commit cbb9ee5

Browse files
authored
Fix error in service provider example [skip ci]
1 parent 89943d7 commit cbb9ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,12 @@ This is a perfect way to add extra options to your HTTP client or register a moc
521521
``` php
522522
class ServiceProvider extends \Illuminate\Support\ServiceProvider
523523
{
524-
protected function register()
524+
public function register()
525525
{
526526
$this->app->bind(\Swis\JsonApi\Client\Client::class, function ($app) {
527527
if ($app->environment('testing')) {
528528
$httpClient = new \Swis\Http\Fixture\Client(
529-
new \Swis\Http\Fixture\ResponseBuilder('/path/to/fixtures');
529+
new \Swis\Http\Fixture\ResponseBuilder('/path/to/fixtures')
530530
);
531531
} else {
532532
$httpClient = new \GuzzleHttp\Client(

0 commit comments

Comments
 (0)