From 83f93779200c1208034babdb9cbfb7e73c85dc5c Mon Sep 17 00:00:00 2001 From: FreedomKnight Date: Fri, 23 Jun 2017 16:14:46 +0800 Subject: [PATCH] change to use ::class to find class name --- src/Setting/SettingServiceProvider.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Setting/SettingServiceProvider.php b/src/Setting/SettingServiceProvider.php index a09e726..00e7256 100644 --- a/src/Setting/SettingServiceProvider.php +++ b/src/Setting/SettingServiceProvider.php @@ -33,8 +33,7 @@ public function boot() */ public function register() { - $this->app->bind('Setting', '\Unisharp\Setting\Setting'); - - $this->app->bind('\Unisharp\Setting\SettingStorageContract', '\Unisharp\Setting\EloquentStorage'); + $this->app->bind('Setting', Setting::class); + $this->app->bind(SettingStorageContract::class, EloquentStorage::class); } }