Cart Helper Bound From Container

This commit is contained in:
devansh bawari 2021-07-12 10:21:12 +05:30
parent 2571b8a7eb
commit f8df13d98e
1 changed files with 11 additions and 7 deletions

View File

@ -1,9 +1,13 @@
<?php
use Webkul\Checkout\Cart;
if (! function_exists('cart')) {
function cart()
{
return app()->make(Cart::class);
}
if (!function_exists('cart')) {
/**
* Cart helper.
*
* @return \Webkul\Checkout\Cart
*/
function cart()
{
return app()->make('cart');
}
}