glorand/laravel-model-settings

how the default settings work

Closed this issue · 1 comments

Can someone explain to me how the default settings work

public $defaultSettings = [
        'key_1' => 'val_1',
];

@Manouher They are merged with the 'models' settings.

array_merge($this->model->getDefaultSettings(), $this->model->getSettingsValue())