Fixed the config service provider

This commit is contained in:
Graham Campbell
2015-12-24 15:33:36 +00:00
parent 22158c3250
commit 00968ceefe
@@ -69,8 +69,10 @@ class ConfigServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bindShared('setting', function () {
$this->app->singleton('setting', function () {
return new Repository(new SettingModel());
});
$this->app->alias('setting', Repository::class);
}
}