We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c69a3 commit 995c09dCopy full SHA for 995c09d
src/Commands/ExportGlobals.php
@@ -73,15 +73,15 @@ private function exportGlobals()
73
$this->withProgressBar($sets, function ($model) use ($variables) {
74
$global = GlobalSetFacade::make()
75
->handle($model->handle)
76
- ->title($model->title)
77
- ->save();
+ ->title($model->title);
78
79
foreach ($variables->where('handle', $model->handle) as $localization) {
80
$global->makeLocalization($localization->locale)
81
->data($localization->data)
82
- ->origin($localization->origin ?? null)
83
+ ->origin($localization->origin ?? null);
84
}
+
+ $global->save();
85
});
86
87
$this->newLine();
0 commit comments