Merge pull request #5003 from devansh-webkul/container-binding
Cart helper bound from container
This commit is contained in:
commit
0429fa1d48
|
|
@ -1,9 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
use Webkul\Checkout\Cart;
|
|
||||||
|
|
||||||
if (! function_exists('cart')) {
|
if (! function_exists('cart')) {
|
||||||
function cart()
|
/**
|
||||||
{
|
* Cart helper.
|
||||||
return app()->make(Cart::class);
|
*
|
||||||
}
|
* @return \Webkul\Checkout\Cart
|
||||||
}
|
*/
|
||||||
|
function cart()
|
||||||
|
{
|
||||||
|
return app()->make('cart');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue