From f8df13d98e9b5f4d2b90254e5467de8a7415e430 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 12 Jul 2021 10:21:12 +0530 Subject: [PATCH] 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'); + } +}