Merge pull request #1281 from cachethq/config
Fixed the config service provider
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user