From a8fa93998dea53a2c73e96385c221372e10e59a4 Mon Sep 17 00:00:00 2001 From: shubhamJY Date: Wed, 26 Jun 2024 11:31:38 +0530 Subject: [PATCH] fix instance --- src/Http/Controllers/Shop/BagistoShiprocketController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/Shop/BagistoShiprocketController.php b/src/Http/Controllers/Shop/BagistoShiprocketController.php index d707546..a089d18 100644 --- a/src/Http/Controllers/Shop/BagistoShiprocketController.php +++ b/src/Http/Controllers/Shop/BagistoShiprocketController.php @@ -162,7 +162,6 @@ public function getEstimatedDelivery(Request $request) 'cod' => 0 ]); - //$data = $this->shiprocketApi->getEstimatedDelivery($request); $shiprocketApi = new Shiprocket; $data = $shiprocketApi->getEstimatedDelivery($request); return response()->json($data); @@ -194,7 +193,8 @@ public function checkPincodeAvailability(Request $request) 'cod' => 0 ]); - $data = $this->shiprocketApi->getEstimatedDelivery($request); + $shiprocketApi = new Shiprocket; + $data = $shiprocketApi->getEstimatedDelivery($request); return response()->json($data); } }