- PHP >= 7.3.0
- Laravel >= 7.0.0
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,