Promocode functionality leveraging Eloquent polymorphic relationships.
MIT License
Published by michael-rubel over 2 years ago
Published by michael-rubel over 2 years ago
verifyCoupon
https://github.com/michael-rubel/laravel-couponables/commit/fa135dcab2d212b160e3b9883aba0bba32cf58b7
Published by michael-rubel over 2 years ago
verifyOrNullifyCoupon
and redeemOrNullifyCoupon
methods to return null instead of the exception in case of failure.CouponService
.Published by michael-rubel over 2 years ago
isDisposable
and verifyCoupon
methods.null
.Published by michael-rubel over 2 years ago
isCouponOverLimit
method to HasCoupons
trait.CouponService
is refactored to reuse code.Published by michael-rubel over 2 years ago
value
column in the coupons
table.Published by michael-rubel over 2 years ago
type
column in the coupons
table.CouponException
exception to catch any coupon fail in one go.isCouponRedeemed
method in HasCoupons
trait is now wrapped into LEC's CallProxy
to make it container bindable.Published by michael-rubel over 2 years ago
isCouponRedeemed
method on HasCoupons
trait.isRedeemedBy
method on Coupon
model.$this
.Published by michael-rubel over 2 years ago
applyCoupon
now returns the CouponContract
.Published by michael-rubel over 2 years ago
Published by michael-rubel over 2 years ago