Skip to content

Commit eb5af1a

Browse files
committed
fix provider
1 parent c9fe4b8 commit eb5af1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Setting/SettingServiceProvider.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ public function boot()
3333
*/
3434
public function register()
3535
{
36-
$this->app->bind('Setting', function () {
37-
return new Setting;
38-
});
36+
$this->app->bind('Setting', '\Unisharp\Setting');
3937

40-
$this->app->bind('\Unisharp\Setting\SettingStorageInterface', '\Unisharp\Setting\EloquentStorage');
38+
$this->app->bind('\Unisharp\Setting\SettingStorageContract', '\Unisharp\Setting\EloquentStorage');
4139
}
4240
}

0 commit comments

Comments
 (0)