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

27 lines
723 B
PHP

<?php
namespace Modules\Admin\database\seeders;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Province;
class ProvinceDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$provinces = [
['name' => 'Koshi', 'country_id' => 156],
['name' => 'Madesh', 'country_id' => 156],
['name' => 'Bagmati', 'country_id' => 156],
['name' => 'Gandaki', 'country_id' => 156],
['name' => 'Lumbini', 'country_id' => 156],
['name' => 'Karnali', 'country_id' => 156],
['name' => 'Sudurpaschim', 'country_id' => 156],
];
Province::create($provinces);
}
}