mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
2.6 KiB
2.6 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
[Unreleased]
[3.0.0] - TBD
Added
- Storage driver system (
CartDriverinterface,CartManager,SessionDriver,DatabaseDriver,RedisDriver,NullDriver,MultiDriver) Cart::fake()- swaps the active driver for aNullDriverand returns aCartFactoryfor fluent test state seeding- Assertion methods on
Cart:assertContains(),assertCount(),assertTotalQuantity(),assertSubTotal(),assertTotal(),assertConditionApplied(),assertEmpty(),assertNotEmpty() CartFactory- fluent builder for seeding test cart state (withItems(),withCondition(),withCoupon())Couponabstract class - extend to create first-class coupon objects that convert toCartConditionTaxRuleabstract class - extend to create first-class tax rules that convert toCartConditionShippingRateabstract class - extend to create first-class shipping rates that convert toCartConditionCart::coupon(),Cart::tax(),Cart::shipping()- accept first-class objects or rawCartConditionHasCarttrait - Livewire-aware trait with reactive$cartItems,$cartTotal,$cartSubTotal,$cartCountand proxy methodsShareCartWithInertia- static class for sharing cart state viaHandleInertiaRequests::share()cart:installArtisan command - publishes config and scaffoldsapp/Cart/directory structurecart:make:couponArtisan command - generates aCouponsubclass stubcart:make:taxArtisan command - generates aTaxRulesubclass stubcart:make:shippingArtisan command - generates aShippingRatesubclass stubcart:make:driverArtisan command - generates aCartDriverimplementation stubcart:debugArtisan command - dumps current cart state (non-production only)- Laravel 13 support
Changed
Cartconstructor now accepts aCartDriverinstance instead of raw session/database storage- Config publish tag renamed from
configtocart-config
Removed
Wearepixel\Cart\CartSession- replaced by the driver system
[2.1.1] - 2026-05-27
Fixed
- PHP 8.4 deprecation warnings from Mockery implicit-nullable parameters in test bootstrap
- Upgraded CI runners from deprecated
ubuntu-20.04toubuntu-latest
Changed
pestphp/pestupgraded from^3.0to^4.7
[2.1.0] - 2024-01-01
Added
- Laravel 12 support
[2.0.0] - 2023-01-01
Added
- Initial v2 release