Heera/database/seeders/CountrySeeder.php

23 lines
355 B
PHP
Raw Permalink Normal View History

2024-05-16 03:46:08 +00:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Country;
class CountrySeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$countries = [
['name' => 'Nepal', 'code' => 'NP'],
];
Country::insert($countries);
}
}