diff --git a/src/ServiceProviderLaravel5.php b/src/ServiceProviderLaravel5.php index 01d832b16..93335fc9c 100644 --- a/src/ServiceProviderLaravel5.php +++ b/src/ServiceProviderLaravel5.php @@ -25,6 +25,8 @@ public function boot() public function register() { $this->mergeConfigFrom(__DIR__.'/config/config.php', 'slack'); + + $this->app->alias('Maknz\Slack\Client', 'maknz.slack'); $this->app->singleton('maknz.slack', function ($app) { return new Client( @@ -42,7 +44,5 @@ public function register() new Guzzle ); }); - - $this->app->alias('Maknz\Slack\Client', 'maknz.slack'); } }