From 79626b954e474e44d71598383c6000ab5f6d6346 Mon Sep 17 00:00:00 2001 From: Steve <34465153+xxl4@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:18:57 +0800 Subject: [PATCH] #2 fix the table name and models name --- src/Config/CheckoutCod.php | 4 ++-- src/Http/Controllers/Api/V1/OrdersController.php | 2 +- src/Models/{OrderCodProxy.php => OrderCodsProxy.php} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Models/{OrderCodProxy.php => OrderCodsProxy.php} (70%) diff --git a/src/Config/CheckoutCod.php b/src/Config/CheckoutCod.php index cd0c302..f0f6a40 100644 --- a/src/Config/CheckoutCod.php +++ b/src/Config/CheckoutCod.php @@ -17,12 +17,12 @@ * * The version of the package */ - 'version' => '1.0.8', + 'version' => '1.1.1', /** * * The version number of the package */ - 'versionNum' => '108', + 'versionNum' => '111', /** * diff --git a/src/Http/Controllers/Api/V1/OrdersController.php b/src/Http/Controllers/Api/V1/OrdersController.php index 29c6dff..799ffa5 100644 --- a/src/Http/Controllers/Api/V1/OrdersController.php +++ b/src/Http/Controllers/Api/V1/OrdersController.php @@ -257,7 +257,7 @@ public function create(Request $request) { $this->orderRepository->update(['status' => 'processing'], $order->id); // add the ip address and ip country to order - $order_cod = new \NexaMerchant\CheckoutCod\Models\OrderCod(); + $order_cod = new \NexaMerchant\CheckoutCod\Models\OrderCods(); $order_cod->order_id = $order->id; $order_cod->ip_address = $request->ip(); $order_cod->ip_country = $ip_country; diff --git a/src/Models/OrderCodProxy.php b/src/Models/OrderCodsProxy.php similarity index 70% rename from src/Models/OrderCodProxy.php rename to src/Models/OrderCodsProxy.php index 61c2077..d421524 100644 --- a/src/Models/OrderCodProxy.php +++ b/src/Models/OrderCodsProxy.php @@ -4,7 +4,7 @@ use Konekt\Concord\Proxies\ModelProxy; -class OrderCodProxy extends ModelProxy +class OrderCodsProxy extends ModelProxy { } \ No newline at end of file