From fa2a6545910691f5f0d17c09f985f92dc0ece37b Mon Sep 17 00:00:00 2001 From: Krishnaprasad MG Date: Thu, 26 Nov 2015 10:24:55 +0100 Subject: [PATCH] Use singleton instead of bindShared bindShared is deprecated (https://github.com/laravel/framework/blob/5.1/src/Illuminate/Container/Container.php#L289) and was removed in Laravel 5.2 --- src/Bridge/Laravel/SlugifyServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bridge/Laravel/SlugifyServiceProvider.php b/src/Bridge/Laravel/SlugifyServiceProvider.php index 8dcb38b5..c4163b78 100644 --- a/src/Bridge/Laravel/SlugifyServiceProvider.php +++ b/src/Bridge/Laravel/SlugifyServiceProvider.php @@ -40,7 +40,7 @@ class SlugifyServiceProvider extends LaravelServiceProvider */ public function register() { - $this->app->bindShared('slugify', function () { + $this->app->singleton('slugify', function () { return new Slugify(); }); }