updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -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
]);
}
}
}