From 2e9b7c0188728ecc32196259bccd6a8f1df88eca Mon Sep 17 00:00:00 2001 From: Sean Tymon Date: Thu, 25 May 2017 20:10:41 +0100 Subject: [PATCH] move alias up --- src/ServiceProviderLaravel5.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); } }