StocksNew/database/seeders/ProvinceSeeder.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

27 lines
687 B
PHP

<?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);
}
}