mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 01:50:38 +00:00
update language strings action added
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\Localization\Actions;
|
||||
|
||||
use DB;
|
||||
|
||||
class UpdateLanguageStringsAction
|
||||
{
|
||||
public function __invoke(array $list): void
|
||||
{
|
||||
collect($list)
|
||||
->each(fn(...$item) => DB::table('language_translations')
|
||||
->where('lang', 'en')
|
||||
->where('key', $item[1])
|
||||
->update(['value' => $item[0]])
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user