diff --git a/src/SlackServiceProviderLaravel5.php b/src/SlackServiceProviderLaravel5.php index 666ee16..0b2d64c 100644 --- a/src/SlackServiceProviderLaravel5.php +++ b/src/SlackServiceProviderLaravel5.php @@ -24,7 +24,7 @@ public function register() { $this->mergeConfigFrom(__DIR__ . '/config/config.php', 'slack'); - $this->app['maknz.slack'] = $this->app->share(function($app) + $this->app->singleton('maknz.slack', function($app) { return new Client( $app['config']->get('slack.endpoint'),