Force default to the value when syncing settings
This commit is contained in:
@@ -161,6 +161,7 @@ class SeederService extends Service
|
||||
|
||||
$count = DB::table('settings')->where('id', $id)->count('id');
|
||||
if ($count === 0) {
|
||||
$attrs['value'] = $attrs['default'];
|
||||
DB::table('settings')->insert($attrs);
|
||||
} else {
|
||||
unset($attrs['value']); // Don't overwrite this
|
||||
|
||||
Reference in New Issue
Block a user