Getting Started

Overview

LaraCart was built to be an easy, fast, and simple solution for cart based systems.

What makes LaraCart unique is what it includes out of the box:

Laravel compatibility

Laravel laracart
5.1 | 5.2 | 5.3 1.1 | 1.2
5.4+ 1.3+

PHP compatibility

PHP laracart
7 1.*
8 2.1+

Installation

Edit your project's composer.json file by adding:

{
    "require": {
        ...
        "lukepolo/laracart": "2.2.*"
    }
}

If using Laravel 5.4 please include the service providers / facade in app/config/app.php:

LukePOLO\LaraCart\LaraCartServiceProvider::class

Include the Facade:

'LaraCart' => LukePOLO\LaraCart\Facades\LaraCart::class

Publish vendor config and migration:

php artisan vendor:publish --provider="LukePOLO\LaraCart\LaraCartServiceProvider"

Look through the configuration options and change as needed.

Configuration

LaraCart has a lot of configuration options, please make sure you run:

php artisan vendor:publish --provider="LukePOLO\LaraCart\LaraCartServiceProvider"

After please make sure you go through and customize for your needs