mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user