StocksNew/database/seeders/ProvinceSeeder.php

27 lines
687 B
PHP
Raw Permalink Normal View History

2024-08-27 12:03:06 +00:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Province;
class ProvinceSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$provinces = [
['name' => 'Koshi', 'country_id' => 1],
['name' => 'Madesh', 'country_id' => 1],
['name' => 'Bagmati', 'country_id' => 1],
['name' => 'Gandaki', 'country_id' => 1],
['name' => 'Lumbini', 'country_id' => 1],
['name' => 'Karnali', 'country_id' => 1],
['name' => 'Sudurpaschim', 'country_id' => 1],
];
Province::insert($provinces);
}
}