1994/back-in-stock-statamic
Statamic add-on for back-in-stock notifications. Let customers subscribe from out-of-stock product pages and automatically notify them when inventory returns, with a simple, configurable workflow for your storefront.
php artisan migrate. The v1.0.1 release adds a new column to back_in_stock_items, so existing installs must migrate as part of the deploy — do not skip this in CI/CD.back_in_stock_items table and the package’s notification/restock service. That table is the source of truth for who is waiting, what they asked for, and which restock batch they belong to.php artisan migrate locally, then submit a request against a product with zero stock and raise the stock in the Control Panel or via your own inventory update. That is the fastest end-to-end smoke test.Notification::fake() and Queue::fake() to assert confirmation and restock notifications. Write feature tests for the two restock modes, the confirmation-while-in-stock path, and the duplicate-address race. Since “one email per address” is now guaranteed at the package level, assert that two near-simultaneous submissions produce one request and one confirmation.back_in_stock_items. Deployments that run code before migrations will break or silently misbehave. Put php artisan migrate in the release step and verify it in staging.How can I help you explore Laravel packages today?