Files
streamline-emr/docker/streamline-src/database/seeders/SuppliersTableSeeder.php
T
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00

36 lines
815 B
PHP
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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
]);
}
}
}