Download the PHP package misaf/vendra-cart without Composer
On this page you can find all versions of the php package misaf/vendra-cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download misaf/vendra-cart
More information about misaf/vendra-cart
Files in misaf/vendra-cart
Package vendra-cart
Short Description Temporary shopping selections for Vendra applications
License MIT
Homepage https://github.com/misaf/vendra-cart
Informations about the package vendra-cart
Vendra Cart
Tenant-aware carts for Vendra applications, with guest UUID tokens, optional polymorphic owners, polymorphic sellables, quantities, metadata, expiration, Filament administration, permissions, and demo-content seeding.
Features
- Guest carts identified by UUID tokens
- Optional polymorphic owners and polymorphic sellable items
- Quantity, metadata, and expiration tracking
- Tenant-aware Filament administration and permission seeding
- Scheduled pruning of expired carts
Requirements
- PHP 8.4+
- Laravel 13
- Filament 5
misaf/vendra-support
Installation
Optionally publish the configuration and translations:
The Filament resource is registered in the shared Sales cluster on the
configured panels. Cart creation and mutation remain application concerns; the
administration UI is limited to viewing and deletion.
How long a new cart lives is a store setting (Settings\CartSettings), edited
on the cart settings page; leave it empty to create carts without an expiry.
Expired carts are pruned daily by default. Change the schedule in the
published configuration or run php artisan vendra-cart:prune-expired
manually. Cart::query()->expired() and unexpired() select the same carts; a
cart without expires_at never expires.
Demo seeders use bundled JSON fixtures in production and when their declared factory classes are unavailable. Local monorepo development continues to use factories when they are autoloadable.
Adding an item locks the cart before its items, sharing the lock order used by checkout so additions cannot race with cart conversion.
Testing
Run the package checks from the project root:
License
MIT. See LICENSE.
All versions of vendra-cart with dependencies
misaf/vendra-support Version self.version
spatie/laravel-package-tools Version ^1.93.1