20 lines
645 B
PHP
20 lines
645 B
PHP
<?php
|
|
|
|
namespace Modules\Localization\Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\Localization\Models\Locale;
|
|
|
|
final class LocaleSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
Locale::query()->updateOrCreate(['code' => 'en'], [
|
|
'name' => 'English', 'native_name' => 'English', 'regional_code' => 'en-GB',
|
|
'direction' => 'ltr', 'date_format' => 'd/m/Y', 'time_format' => 'H:i',
|
|
'timezone' => config('app.timezone', 'UTC'), 'currency_code' => 'GBP',
|
|
'currency_symbol' => '£', 'position' => 0, 'is_default' => true, 'is_active' => true,
|
|
]);
|
|
}
|
|
}
|