All notable changes to shopping-cart
will be documented in this file.
- add support for php 8.1 & Laravel 9
- Update config file: keep the default values, but look for env variables if available.
- Upgrade illuminate/database to version 7.30.4 or later - fix for GHSA-3p32-j457-pg5x
- Fix for CVE-2021-21263
- add support for php 8
- Laravel 8 support
- drop support for PHP 7.2 as EOL is around the corner
- Enable Variable pricing based on Product Options
- add support for Laravel 7
Fixed removing non-existing item bug (4c38021)
Fixed bug where tax calculation did not respect product quantity
Added updateOption
method
Added:
- Ability to provide an options array when adding products. If you've already included this package in your project and want to use this feature, you'll need to add a nullable JSON column called
options
to yourcart_items
table.
Schema::table('cart_items', function (Blueprint $table) {
$table->json('options')->nullable();
});
Migrations are now publishable
- Fixed a bug where cached totals weren't clearing on
destroy()
- Migration optimization
- Fixed
count
method to return total quantity
- Default tax rate was changed to 0
- Initial release