项目作者: webzera

项目描述 :
laravel Cart
高级语言: PHP
项目地址: git://github.com/webzera/laracart.git
创建时间: 2020-05-02T05:47:40Z
项目社区:https://github.com/webzera/laracart

开源协议:

下载


Requirements

  • 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

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

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

  1. composer require webzera/laracart

or

  1. php composer.phar require webzera/laracart

php artisan vendor:publish --force

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