From 072de016e332b9912c2a9dec033226d072b2ccbe Mon Sep 17 00:00:00 2001 From: Kapil Date: Thu, 24 Dec 2015 13:00:46 +0530 Subject: [PATCH] Upgrading to 5.2 from 5.1 Changed because bindShared has been renamed to singleton in laravel 5.2. --- src/Bllim/Laravalid/LaravalidServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bllim/Laravalid/LaravalidServiceProvider.php b/src/Bllim/Laravalid/LaravalidServiceProvider.php index 8d5d5f2..c7fdaa0 100644 --- a/src/Bllim/Laravalid/LaravalidServiceProvider.php +++ b/src/Bllim/Laravalid/LaravalidServiceProvider.php @@ -43,13 +43,13 @@ public function register() if(!isset($this->app['html'])) { - $this->app->bindShared('html', function($app) + $this->app->singleton('html', function($app) { return new \Collective\Html\HtmlBuilder($app['url']); }); } - $this->app->bindShared('laravalid', function ($app) { + $this->app->singleton('laravalid', function ($app) { $plugin = \Config::get('laravalid.plugin'); $converterClassName = 'Bllim\Laravalid\Converter\\'.$plugin.'\Converter'; $converter = new $converterClassName();