Cart Helper Bound From Container
This commit is contained in:
parent
2571b8a7eb
commit
f8df13d98e
|
|
@ -1,9 +1,13 @@
|
|||
<?php
|
||||
use Webkul\Checkout\Cart;
|
||||
|
||||
if (! function_exists('cart')) {
|
||||
if (!function_exists('cart')) {
|
||||
/**
|
||||
* Cart helper.
|
||||
*
|
||||
* @return \Webkul\Checkout\Cart
|
||||
*/
|
||||
function cart()
|
||||
{
|
||||
return app()->make(Cart::class);
|
||||
}
|
||||
return app()->make('cart');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue