⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hospital.dev-unit.com
/
database
/
seeders
/
View File Name :
MedicineTableSeeder.php
<?php namespace Database\Seeders; use App\Models\Medicine; use Illuminate\Database\Seeder; class MedicineTableSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $input = [ [ 'category_id' => 1, 'brand_id' => 1, 'name' => 'Aciclovir', 'selling_price' => 90, 'buying_price' => 120, 'side_effects' => 'As directed by the Physician', 'description' => 'It\'s a Anti-viral tablets.', 'salt_composition' => 'aciclovir', ], [ 'category_id' => 2, 'brand_id' => 2, 'name' => 'Atenolol', 'selling_price' => 190, 'buying_price' => 220, 'side_effects' => 'As directed by the Physician', 'description' => 'It\'s a hypertension and angina and in stable heart attack patients to prevent death.', 'salt_composition' => 'atenolol', ], [ 'category_id' => 3, 'brand_id' => 3, 'name' => 'Amlodipine Olmesartan', 'selling_price' => 30, 'buying_price' => 70, 'side_effects' => 'As directed by the Physician', 'description' => 'It\'s a combination medicine used to treat high blood pressure (hypertension).', 'salt_composition' => 'amlodipine olmesartan', ], [ 'category_id' => 4, 'brand_id' => 4, 'name' => 'Camylofin', 'selling_price' => 50, 'buying_price' => 90, 'side_effects' => 'As directed by the Physician', 'description' => 'It\'s an antimuscarinic drug that also causes direct smooth muscle relaxation.', 'salt_composition' => 'camylofin', ], [ 'category_id' => 5, 'brand_id' => 5, 'name' => 'Unidex', 'selling_price' => 120, 'buying_price' => 160, 'side_effects' => 'As directed by the Physician', 'description' => 'It\'s a drug which is used at the time of depression.', 'salt_composition' => 'unidex', ], ]; foreach ($input as $data) { Medicine::create($data); } } }