mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
34 lines
577 B
PHP
Executable File
34 lines
577 B
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\Country;
|
|
|
|
class CountriesTableSeeder extends Seeder {
|
|
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run() {
|
|
$countries = [
|
|
'CONGO',
|
|
'UGANDA',
|
|
'RWANDA',
|
|
'KENYA',
|
|
'TANZANIA',
|
|
'BURUNDI'
|
|
];
|
|
|
|
foreach ($countries as $country):
|
|
|
|
Country::firstOrCreate([
|
|
"name" => $country,
|
|
]);
|
|
|
|
endforeach;
|
|
}
|
|
|
|
}
|