A shopping cart is a piece of software that keeps the record of the items a buyer has 'picked up' from the online store.
By using the hardevine shopping cart we can easily implement that.
Go to your newly created project directory and run the command:
composer require hardevine/shoppingcart
Go to app.php and set the given line to the providers[ ] section like:
Add one more to the aliases[ ] as like:
‘Cart’ => Gloudemans\Shoppingcart\Facades\Cart::class
Php artisan vendor:publish --provider="Gloudeman\ShoppingcartServiceProvider" --tag="config"