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 80121cd commit 65a13cdCopy full SHA for 65a13cd
src/Controllers/sLangController.php
@@ -121,7 +121,8 @@ public function prepareFields(array $content): array
121
*/
122
public function setLangContent(int $resourceId, string $langKey, array $fields): void
123
{
124
- sLangContent::updateOrCreate(['resource' => $resourceId, 'lang' => $langKey], $fields);
+ sLangContent::withoutGlobalScope('language')
125
+ ->updateOrCreate(['resource' => $resourceId, 'lang' => $langKey], $fields);
126
}
127
128
/**
0 commit comments