Version 4.0
Improvments
- updated phpunit to 5.0 (to support atleast php 5.6 in testing)
- removed php <=5.4 support
- fix failed tests due to upgrade to phpunit5+
- documentation improvements
Breaking Change!!
- Adding conditions can now be targeted to either "subtotal" or "total" See: https://github.com/darryldecode/laravelshoppingcart#conditions for more detailed explanation.
- When adding condition on per item bases, 'target' parameter is now not needed or can be omitted.
Upgrade guide:
- for conditions that are added to cart bases, change 'target' => 'total'
- If there are conditions that you customly apply to subtotal, you can now add it as normal cart condition and put target => 'subtotal'
- conditions that are per item or conditions that are added and applied on per item, you can remove the 'target' => 'item' parameter since this is already removed and not needed.