PHPackages                             aharen/cart - 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. aharen/cart

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

aharen/cart
===========

Simple Session based cart for shopping websites

v1.0(9y ago)058MITPHPPHP &gt;=5.4.0

Since Aug 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/aharen/cart)[ Packagist](https://packagist.org/packages/aharen/cart)[ RSS](/packages/aharen-cart/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Cart
====

[](#cart)

Simple Session based cart for shopping websites in Laravel

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

[](#installation)

```
composer require aharen/cart

```

Configuration
-------------

[](#configuration)

1. Add `CartServiceProvider` to `providers` in `config/app.php`

    aharen\\Cart\\CartServiceProvider::class,
2. Add `Cart` Facade to `aliases` in `config/app.php`

    'Cart' =&gt; aharen\\Cart\\CartFacade::class,
3. Publish the config file to `config` folder

    php artisan vendor:publish

If so some reason it doesn't create the config file you have to create a file named `cart.php` inside the `config` folder with the contents below

```
