65 lines
1.5 KiB
PHP
65 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\System\Location\Province;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class ProvinceTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$datas = [
|
|
[
|
|
'region' => 'ag',
|
|
'name' => 'Arçabil',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'ag',
|
|
'name' => 'Bagtyýarlyk',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'ag',
|
|
'name' => 'Berkararlyk',
|
|
'active' => true,
|
|
],
|
|
|
|
[
|
|
'region' => 'ag',
|
|
'name' => 'Çandybil',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'ag',
|
|
'name' => 'Köpetdag',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'ah',
|
|
'name' => 'Altyn-Asyr',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'ah',
|
|
'name' => 'Ak-Bugdaý',
|
|
'active' => true,
|
|
],
|
|
[
|
|
'region' => 'mr',
|
|
'name' => 'Mary',
|
|
'active' => true,
|
|
],
|
|
];
|
|
|
|
foreach ($datas as $data) {
|
|
Province::create($data);
|
|
}
|
|
}
|
|
}
|