PHPackages                             rkwebsolution/laravel-cart-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rkwebsolution/laravel-cart-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rkwebsolution/laravel-cart-manager
==================================

Managing the cart of your Laravel application is a breeze

2.1.0(4mo ago)09MITPHPPHP ^8.2

Since Sep 27Pushed 4mo agoCompare

[ Source](https://github.com/rehankausar/laravel-cart-manager)[ Packagist](https://packagist.org/packages/rkwebsolution/laravel-cart-manager)[ RSS](/packages/rkwebsolution-laravel-cart-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/8ccf2477ca60bdc71edb9d5ddbf95b623d72565ba54033a07ad1b5e543e2354a/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d636172742d6d616e616765722f762f737461626c65)](https://packagist.org/packages/freshbitsweb/laravel-cart-manager)[![Total Downloads](https://camo.githubusercontent.com/77e9fc9fb0a06eb166791e96b3811bb6e837adff1ce6c6050f8afba181451470/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d636172742d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/freshbitsweb/laravel-cart-manager)[![License](https://camo.githubusercontent.com/873c128114bf230affd8787b93cf9e9286598ecf19f7206d676fdfb96490f2c2/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d636172742d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/freshbitsweb/laravel-cart-manager)[![StyleCI](https://camo.githubusercontent.com/6364edbdcfa8d83b1aeded2f37766f1fed15fd6fef45f2fd6b3046766966654c/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131353139393833312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/115199831)[![Build Status](https://camo.githubusercontent.com/f4f2e495123c2c74ee23e5314411778af11dc7c004a106ff6080f64982d50c69/68747470733a2f2f7472617669732d63692e636f6d2f6672657368626974737765622f6c61726176656c2d636172742d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/freshbitsweb/laravel-cart-manager)[![Buy us a tree](https://camo.githubusercontent.com/dd118003b5a1a1654809a5c3915a5f9e213a16eeeb09781e1c5e0fe4c336f46b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532306d6525323061253230747265652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://offset.earth/treeware?gift-trees)

Cart Manager (Laravel 8+)
=========================

[](#cart-manager-laravel-8)

Let's make the cart management with Laravel a breeze.

Just another shopping cart package?
-----------------------------------

[](#just-another-shopping-cart-package)

There are a few well maintained shopping cart packages available but I wanted to have a solution which feels like *the Laravel way* and is more coupled with the database and provides additional functionality like **shipping charges**, **discount**, **tax**, **total**, **round off**, **guest carts**, etc. *out-of-box* while staying a very easy to use package.

Why/when to use?
----------------

[](#whywhen-to-use)

Let us decide when this package should be used:

1. You are looking for an easy to use solution which provides cart feature for users as well as guests.
2. You want to make sure that the carting can work via APIs as well to support mobile applications.
3. You want features like Shipping charges, tax, discount, round off, etc.
4. You want to store cart data in Database, session or at a custom place.
5. You like using the packages which are more like [the Laravel way](https://laravelshift.com/opinionated-laravel-way-shift)

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 8.0+
- PHP ext-intl (International extension)

**Notes**:

- If you are still using PHP &lt;8.2 with &lt;Laravel 8.x, you may use v1.2.0 of this package.

Installation
------------

[](#installation)

1. Install the package by running this command in your terminal/cmd:

```
composer require rkwebsolution/laravel-cart-manager

```

2. Import config file by running this command in your terminal/cmd:

```
php artisan vendor:publish --tag=laravel-cart-manager-config

```

3. Import migrations files by running these commands in your terminal/cmd:

```
php artisan vendor:publish --tag=laravel-cart-manager-migrations
php artisan migrate

```

4. Add a trait to the model(s) of cart items:

```
