update api drugs

This commit is contained in:
Server D3 Linksehat
2024-09-02 17:35:22 +07:00
parent bfa21b97e4
commit d534d94e6f
2 changed files with 2 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ class DrugController extends Controller
'label' => $drug->name, 'label' => $drug->name,
'code' => $drug->code, 'code' => $drug->code,
'price' => $drug->price, 'price' => $drug->price,
'unit' => $drug->unit,
]; ];
}); });
return Helper::responseJson(data: $manipulatedDrugs); return Helper::responseJson(data: $manipulatedDrugs);

View File

@@ -28,6 +28,7 @@ class Drug extends Model
'status', 'status',
'price', 'price',
'active', 'active',
'unit'
]; ];
public function categories() public function categories()