From 642f4483a97a42fa48f1c21277a46eee4df7976d Mon Sep 17 00:00:00 2001 From: Krishnaprasad MG Date: Thu, 26 Nov 2015 12:37:42 +0100 Subject: [PATCH] Use singleton instead of bindShared bindShared is deprecated in favor of singleton in 5.1 --- 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(); }); }