From f8df13d98e9b5f4d2b90254e5467de8a7415e430 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 12 Jul 2021 10:21:12 +0530 Subject: [PATCH 1/2] Cart Helper Bound From Container --- packages/Webkul/Checkout/src/Http/helpers.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/Webkul/Checkout/src/Http/helpers.php b/packages/Webkul/Checkout/src/Http/helpers.php index dab85a970..f20b3db09 100755 --- a/packages/Webkul/Checkout/src/Http/helpers.php +++ b/packages/Webkul/Checkout/src/Http/helpers.php @@ -1,9 +1,13 @@ make(Cart::class); - } - } \ No newline at end of file +if (!function_exists('cart')) { + /** + * Cart helper. + * + * @return \Webkul\Checkout\Cart + */ + function cart() + { + return app()->make('cart'); + } +} From 72ad19da588a61b2a09493c797f5af3716953867 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 12 Jul 2021 14:16:06 +0530 Subject: [PATCH 2/2] Space Added --- packages/Webkul/Checkout/src/Http/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Checkout/src/Http/helpers.php b/packages/Webkul/Checkout/src/Http/helpers.php index f20b3db09..9f80d9e58 100755 --- a/packages/Webkul/Checkout/src/Http/helpers.php +++ b/packages/Webkul/Checkout/src/Http/helpers.php @@ -1,6 +1,6 @@