From 5f546ed27f9465ac819dce7e1516d2cfaae0840b Mon Sep 17 00:00:00 2001 From: Rohan Maheshwari Date: Mon, 15 Jan 2018 13:17:25 -0500 Subject: [PATCH] fix for laravel 5.4 --- src/ServiceProviderLaravel5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProviderLaravel5.php b/src/ServiceProviderLaravel5.php index 78812fb05..b836e7333 100644 --- a/src/ServiceProviderLaravel5.php +++ b/src/ServiceProviderLaravel5.php @@ -26,7 +26,7 @@ public function register() { $this->mergeConfigFrom(__DIR__.'/config/config.php', 'slack'); - $this->app['maknz.slack'] = $this->app->share(function ($app) { + $this->app['maknz.slack'] = $this->app->singleton('maknz.slack', function () { return new Client( $app['config']->get('slack.endpoint'), [