webzera/laracart

This cart package is for laravel ecommerce

dev-master 2022-10-01 05:24 UTC

This package is not auto-updated.

Last update: 2024-05-11 14:47:03 UTC


README

  • PHP >= 7.3.0
  • Laravel >= 7.0.0

Installation

And make sure the product view page completed in home page of the ecommerce site and 'Add Cart' button the button link is {{ route('cart::add', $product) }}

-Here $product is 'single product object'.

products table, factory and seeds file download form databasesource folder in webzera/laracart.

Before use factory file, make sure Product model created

php artisan tinker
factory('App\Product', 50)->create()

First, install laravel 7, and make sure that the database connection settings are correct.

composer require webzera/laracart

or

php composer.phar require webzera/laracart

php artisan vendor:publish --force

Open http://localhost/cart/ in browser,