mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
36 lines
815 B
PHP
Executable File
36 lines
815 B
PHP
Executable File
<?php
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
//use Illuminate\Support\Facades\DB;
|
||
use Streamline\Models\Supplier;
|
||
|
||
class SuppliersTableSeeder extends Seeder {
|
||
|
||
/**
|
||
* Run the database seeders.
|
||
*
|
||
* @return void
|
||
*/
|
||
public function run() {
|
||
$names = array(
|
||
'JOINT MEDICAL STORES (JMs)',
|
||
'NATIONAL MEDICAL STORES (NMS)'
|
||
);
|
||
|
||
foreach ($names as $name) {
|
||
|
||
// Prevent re-seeding the same data
|
||
Supplier::firstOrCreate([
|
||
'name' => $name,
|
||
'company' => '',
|
||
'mobile_number' => '0392700806',
|
||
'address' => 'P.O.Box 109 256 Kabale, Uganda',
|
||
'created_by' => 1,
|
||
'updated_by' => 1
|
||
]);
|
||
}
|
||
}
|
||
|
||
}
|