public static function getProducts($billID) { $billDetail = billDetail::join("products", "products.id", "=", "bill_details.products_id")->select(["products.name", "bill_details.*"])->where("bill_details.bill_id", $billID)->get(); return $billDetail; }