Merge pull request #5003 from devansh-webkul/container-binding

Cart helper bound from container
This commit is contained in:
Glenn Hermans 2021-07-12 22:24:39 +02:00 committed by GitHub
commit 0429fa1d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
}
}