mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
controller refactoring part 25
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user