Skip to content

Commit b650414

Browse files
authored
Update README.md
1 parent efda29f commit b650414

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ php artisan make:service UserService --repository
5454
php artisan make:service UserService --api
5555

5656
```
57+
58+
## How to change bind interface to new class implementation
59+
Add this config to AppServiceProvider :
60+
```php
61+
$this->app->extend(Interface::class, function ($service, $app) {
62+
return new NewImplement($service);
63+
});
64+
```
65+
5766
# Documentation
5867
Go to guide [Click Here](http://bit.ly/repository-service-pattern-guide)
5968

0 commit comments

Comments
 (0)