diff --git a/src/ExchangeServiceProvider.php b/src/ExchangeServiceProvider.php index d15cbaa..7c3457a 100644 --- a/src/ExchangeServiceProvider.php +++ b/src/ExchangeServiceProvider.php @@ -20,7 +20,7 @@ class ExchangeServiceProvider extends ServiceProvider */ public function register() { - $this->app['exchange'] = $this->app->share(function($app) { + $this->app->singleton(Exchange::class, function ($app) { return new Exchange; }); } @@ -32,7 +32,7 @@ public function register() */ public function provides() { - return ['exchange']; + return [Exchange::class]; } }