From d534d94e6f4846c54ab239819f840faa4612c568 Mon Sep 17 00:00:00 2001 From: Server D3 Linksehat Date: Mon, 2 Sep 2024 17:35:22 +0700 Subject: [PATCH] update api drugs --- Modules/Internal/Http/Controllers/Api/DrugController.php | 1 + app/Models/Drug.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Modules/Internal/Http/Controllers/Api/DrugController.php b/Modules/Internal/Http/Controllers/Api/DrugController.php index b43b17ea..8d46018e 100755 --- a/Modules/Internal/Http/Controllers/Api/DrugController.php +++ b/Modules/Internal/Http/Controllers/Api/DrugController.php @@ -41,6 +41,7 @@ class DrugController extends Controller 'label' => $drug->name, 'code' => $drug->code, 'price' => $drug->price, + 'unit' => $drug->unit, ]; }); return Helper::responseJson(data: $manipulatedDrugs); diff --git a/app/Models/Drug.php b/app/Models/Drug.php index 84028837..1d6d77f0 100755 --- a/app/Models/Drug.php +++ b/app/Models/Drug.php @@ -28,6 +28,7 @@ class Drug extends Model 'status', 'price', 'active', + 'unit' ]; public function categories()