Skip to content

Commit cc1193c

Browse files
committed
Update readme to make it more clear that the boot method should be used when registering plugins
1 parent 2a33e22 commit cc1193c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ If you are a Laravel 5.1 (currently not released) user you could also use the bl
150150
```
151151

152152
### Registering plugins
153-
Plugins can be registered in a service provider using the boot method.
153+
Plugins can be registered in a service provider using the `boot()` method.
154154
```php
155155
namespace App\Providers;
156156

@@ -170,6 +170,15 @@ class TmdbServiceProvider extends ServiceProvider {
170170
$client = $this->app->make('Tmdb\Client');
171171
$client->getHttpClient()->addSubscriber($plugin);
172172
}
173+
174+
/**
175+
* Register services
176+
* @return void
177+
*/
178+
public function register()
179+
{
180+
// register any services that you need
181+
}
173182
}
174183
```
175184

0 commit comments

Comments
 (0)