This commit is contained in:
Mark Gregory
2026-07-24 11:18:03 +01:00
parent 9825a0ab0e
commit d8d39d5810
24 changed files with 329 additions and 8 deletions
@@ -0,0 +1,16 @@
<?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,
]);
}
}