DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,503 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Remon Hasan
Remon Hasan

Posted on

Shopping Cart Laravel 8 : Part 1

Source Code

Github

Shopping Cart

A shopping cart is a piece of software that keeps the record of the items a buyer has 'picked up' from the online store.

Shopping Cart Package

By using the hardevine shopping cart we can easily implement that.

Installation

Go to your newly created project directory and run the command:

composer require hardevine/shoppingcart

Configuration Setup

Go to app.php and set the given line to the providers[ ] section like:

Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class

Add one more to the aliases[ ] as like:

β€˜Cart’ => Gloudemans\Shoppingcart\Facades\Cart::class

Publishing the Package

Php artisan vendor:publish --provider="Gloudeman\ShoppingcartServiceProvider" --tag="config"

Top comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›