Merge pull request #1281 from cachethq/config

Fixed the config service provider
This commit is contained in:
Graham Campbell
2015-12-24 15:37:57 +00:00

View File

@@ -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);
}
}