controller refactoring part 25

This commit is contained in:
Peter Papp
2021-07-22 07:49:25 +02:00
parent 6d8a7a429c
commit 5167f082f7
50 changed files with 252 additions and 481 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Domain\Localization\Actions;
use Domain\Localization\Models\Language;
use Domain\Settings\Models\Setting;
class SeedDefaultLanguageAction
{
/**
* Store default VueFileManager language into database
*/
public function __invoke(): void
{
Language::create([
'name' => 'English',
'locale' => 'en',
]);
Setting::create([
'name' => 'language',
'value' => 'en',
]);
}
}