Remon Hasan
Posted on May 12, 2021
Source Code
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"
๐ ๐ช ๐
๐ฉ
Remon Hasan
Posted on May 12, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
laravel PHP is a Single-Threaded Language, So How Does Laravel Handle Queue Jobs Asynchronously?
November 28, 2024