123456789101112131415161718192021222324 |
- <?php
- namespace Chuckpac\Weather;
- class ServiceProvider extends \Illuminate\Support\ServiceProvider
- {
- protected $defer = true;
- public function register()
- {
- $this->app->singleton(Weather::class, function(){
- return new Weather(config('services.weather.key'));
- });
- $this->app->alias(Weather::class, 'weather');
- }
- public function provides()
- {
- return [Weather::class, 'weather'];
- }
- }
|