Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Tomato Coupons Module

Tomato Coupons Module Laravel Package

tomatophp/tomato-coupons-module

A Laravel module that adds coupon and discount code management to TomatoPHP apps, letting you create, apply, and validate promo codes on orders with a ready-made admin interface and database migrations.

View on GitHub
Deep Wiki
Context7

Tomato Coupons is a drop-in Laravel module that adds a complete coupon and discount system to your TomatoPHP application. Built for Filament panels, it ships with ready-made resources so you can create, edit, and track promo codes without building admin UI yourself—percentage or fixed-amount discounts, usage caps, expiry windows, and minimum cart thresholds are all handled out of the box.

The module exposes a clean validation service you can call from any cart or checkout flow, so applying a code is a single method call returning a clear success or failure result.

  • Percentage and fixed-amount discount types
  • Per-coupon and total redemption limits
  • Start/expiry scheduling and minimum-order rules
  • Filament CRUD resource with redemption tracking
Frequently asked questions about Tomato Coupons Module
How do I install tomatophp/tomato-coupons-module in a Laravel application?
Install it with Composer using composer require tomatophp/tomato-coupons-module, then confirm Laravel package auto-discovery has registered the service provider. Publish any package configuration and migrations, run the migrations against a staging database, and verify the Filament admin resources and permissions before using it in production.
Which Laravel and PHP versions are supported by this coupons module?
The provided evaluation does not list exact framework or PHP constraints, so inspect the package composer.json and README before adopting it. Validate the required Laravel and PHP versions against your application, and test on your database engine because compatibility is not established by the translation-only v1.0.1 patch.
Does this package integrate with Filament and the TomatoPHP admin panel?
Yes, the package is described as a Tomato PHP module that provides ready-made Filament resources and settings for coupon management in the admin panel. Confirm your Filament and TomatoPHP versions match the package requirements, then smoke-test admin routes, menu entries, and permissions in staging.
How are coupons applied to carts or checkout in Laravel with this module?
The module focuses on managing offers, coupons, and gift cards inside the TomatoPHP e-commerce admin, but the evaluation notes you must validate whether redemption is enforced at cart, checkout, order, or API layer. Plan to integrate coupon validation into your existing cart and checkout flow and test expiry, stacking, and usage-limit behavior.
Are the database migrations reversible and safe to run in production?
The package ships migrations, but the evaluation does not confirm reversibility or production safety, so review each migration before running it. Test migrations against a production-like schema in staging, check for table and column conflicts, and prepare a rollback plan that covers both schema and configuration changes.
Does this coupon module support expiry dates, usage limits, and stacking rules?
The overview mentions discount codes and promotional offers, but the evaluation flags redemption limits, expiry, stacking rules, currency, and tenant behavior as requirements to validate. Do not assume these coupon rules are implemented as needed; test them directly against your product and checkout scenarios before relying on the package.
How do I publish the configuration and migrations for tomato-coupons-module?
After Composer installation and service-provider discovery, use the package's publish commands, typically php artisan vendor:publish, to expose configuration and migration files. Run php artisan migrate in staging first, then seed or verify any required permissions and settings before promoting the changes to production.
Is this package suitable for multi-tenant or multi-currency Laravel applications?
The evaluation lists multi-tenancy, currency, and localization behavior as open questions rather than confirmed features. If your application uses multiple tenants or currencies, review the package source and schema, then test coupon isolation, currency handling, and locale fallbacks in a staging environment before adoption.
How should I test coupon redemption and concurrency with this Laravel package?
Start with installability and migration checks, then test the full coupon lifecycle, checkout effects, and locale behavior in staging. Because the package has limited release history and no confirmed test coverage, add your own automated tests for expiry, stacking, usage limits, and concurrent redemption of limited-use coupons.
Is tomatophp/tomato-coupons-module actively maintained, and what alternatives exist?
The package has a limited release history, and v1.0.1 is a translation-only patch, so treat maintenance depth as an adoption risk and review its release cadence and issue activity. Alternatives include maintained Laravel coupon libraries or building first-party coupon logic if you need stronger guarantees around redemption rules, multi-tenancy, and long-term support.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console