Download the PHP package witify/laravel-cart without Composer
On this page you can find all versions of the php package witify/laravel-cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download witify/laravel-cart
More information about witify/laravel-cart
Files in witify/laravel-cart
Package laravel-cart
Short Description Highly flexible cart for Laravel
License MIT
Homepage https://github.com/Witify/laravel-cart
Informations about the package laravel-cart
Lightweight and highly flexible cart in Laravel
Installation
You can install the package via composer:
Usage
For Laravel 5.1 to 5.4, add the service provider:
Configuration
To save cart into the database so you can retrieve it later, the package needs to know which database connection to use and what the name of the table is.
By default the package will use the default database connection and use a table named carts
.
If you want to change these options, you'll have to publish the config
file.
php artisan vendor:publish --provider="Witify\LaravelCart\LaravelCartServiceProvider" --tag="config"
This will give you a cart.php
config file in which you can make the changes.
To make your life easy, the package also includes a ready to use migration
which you can publish by running:
php artisan vendor:publish --provider="Witify\LaravelCart\LaravelCartServiceProvider" --tag="migrations"
This will place a carts
table's migration file into database/migrations
directory. Now all you have to do is run php artisan migrate
to migrate your database
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- François Lévesque
- All Contributors
License
The MIT License (MIT). Please see License File for more information.