mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
32 lines
623 B
PHP
Executable File
32 lines
623 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class ModuleSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$modules = [
|
|
'Community Health Insurance',
|
|
'Laboratory', 'Imaging',
|
|
'Pharmacy',
|
|
'Drugs',
|
|
'Sundries',
|
|
'Procedures',
|
|
'Investigations',
|
|
'Patient Finance'
|
|
];
|
|
|
|
foreach ($modules as $module):
|
|
\Streamline\Models\Module::firstOrCreate([
|
|
"name" => $module
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|