Download the PHP package devbuddy/cart without Composer
On this page you can find all versions of the php package devbuddy/cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devbuddy/cart
More information about devbuddy/cart
Files in devbuddy/cart
Package cart
Short Description A simple cart class for laravel to build ecommerce websites from scratch. No need of configurations just download and start using it. You can customize the functionality as per your requirements very easily and with no hassle.
License Apache-2.0
Informations about the package cart
laravel-cart
Laravel Package for the management of cart.
Install the Package by : composer require devbuddy/cart
After successfully installation configure the package into your project.
Add where need to use the Cart :
Laravel 5 & 6 Shopping Cart
A Shopping Cart Implementation for Laravel Framework
INSTALLATION
Install the package through Composer.
For Laravel 5.1~:
composer require "devbuddy/cart"
CONFIGURATION
- Open config/app.php and add this line to your Service Providers Array. NOTE: If you are using laravel 5.5 or above, this will be automatically added by its auto discovery.
Quick Usage Example
What is a Row ID?
The row ID is a unique identifier that is generated by the cart code when an item is added to the cart. The reason a unique ID is created is so that identical products with different options can be managed by the cart.
For example, let’s say someone buys two identical t-shirts (same product ID), but in different sizes. The product ID (and other attributes) will be identical for both sizes because it’s the same shirt. The only difference will be the size. The cart must therefore have a means of identifying this difference so that the two sizes of shirts can be managed independently. It does so by creating a unique “row ID” based on the product ID and any options associated with it.
METHODS!
See More Examples below:
Adding Item on Cart: Cart::insert()
There are several ways you can add items on your cart, see below:
Updating an item on a cart: Cart::update()
Updating an item on a cart is very simple:
Removing an item on a cart: Cart::remove()
Removing an item on a cart is very easy:
Getting an item on a cart: Cart::contents()
Still feeling confuse on how to do custom database storage? Or maybe doing multiple cart instances? Contact me via git.
License
The Laravel Shopping Cart is open-sourced software licensed under the MIT license
Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR, OR ANY OF THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All versions of cart with dependencies
illuminate/support Version 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0
illuminate/validation Version 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0
illuminate/translation Version 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0