laravel-couponables

Promocode functionality leveraging Eloquent polymorphic relationships.

MIT License

Downloads
43.8K
Stars
181
Committers
2
laravel-couponables - 8.0.1 Latest Release

Published by michael-rubel 11 months ago

laravel-couponables - v8.0.0

Published by michael-rubel over 1 year ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/7.1.3...8.0.0

laravel-couponables - v7.1.3

Published by michael-rubel over 1 year ago

laravel-couponables - v7.1.2

Published by michael-rubel over 1 year ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/7.1.1...7.1.2

laravel-couponables - v7.1.1

Published by michael-rubel over 1 year ago

laravel-couponables - v7.1.0

Published by michael-rubel over 1 year ago

laravel-couponables - v7.0.5

Published by michael-rubel over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/7.0.4...7.0.5

laravel-couponables - v7.0.4

Published by michael-rubel over 1 year ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/7.0.3...7.0.4

laravel-couponables - v7.0.3

Published by michael-rubel almost 2 years ago

laravel-couponables - v7.0.2

Published by michael-rubel almost 2 years ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/7.0.1...7.0.2

laravel-couponables - v7.0.1

Published by michael-rubel almost 2 years ago

laravel-couponables - v7.0.0

Published by michael-rubel almost 2 years ago

What's Changed

Breaking Changes (Upgrade carefully!)

  • [BC] CHANGED: Method initializeHasCoupons() of class MichaelRubel\Couponables\Traits\HasCoupons visibility reduced from public to protected
  • [BC] CHANGED: The parameter $callback of MichaelRubel\Couponables\Traits\HasCoupons#verifyCouponOr() changed from mixed to a non-contravariant Closure|null
  • [BC] CHANGED: The parameter $callback of MichaelRubel\Couponables\Traits\HasCoupons#verifyCouponOr() changed from mixed to Closure|null
  • [BC] CHANGED: The parameter $callback of MichaelRubel\Couponables\Traits\HasCoupons#redeemCouponOr() changed from mixed to a non-contravariant Closure|null
  • [BC] CHANGED: The parameter $callback of MichaelRubel\Couponables\Traits\HasCoupons#redeemCouponOr() changed from mixed to Closure|null
  • [BC] CHANGED: Property MichaelRubel\Couponables\Models\Coupon#$casts changed default value

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/6.0.0...7.0.0

laravel-couponables - v6.0.0

Published by michael-rubel almost 2 years ago

laravel-couponables - v5.0.1

Published by michael-rubel about 2 years ago

laravel-couponables - v5.0.0

Published by michael-rubel about 2 years ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/4.0.2...5.0.0

laravel-couponables - v4.0.2

Published by michael-rubel over 2 years ago

What's changed

  • Bump allowed version of LEC

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/4.0.1...4.0.2

laravel-couponables - v4.0.1

Published by michael-rubel over 2 years ago

What's Changed

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/4.0.0...4.0.1

laravel-couponables - v4.0.0

Published by michael-rubel over 2 years ago

What's changed

  • Added redeemBy and for features;
  • Added coupon code generators;
  • Added artisan command to generate coupons;
  • Added more events to listen;
  • Improved method binding (package extendability);

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/3.4.1...4.0.0

laravel-couponables - v3.4.1

Published by michael-rubel over 2 years ago

What's changed

  • Allowed the new version of LEC.

Full Changelog: https://github.com/michael-rubel/laravel-couponables/compare/3.4.0...3.4.1

laravel-couponables - v3.4.0

Published by michael-rubel over 2 years ago

Added

  • verifyCouponOr and redeemCouponOr methods.

Changed

  • verifyOrNullifyCoupon and redeemOrNullifyCoupon methods will be removed in the next major release. They are marked as deprecated and still available to avoid breaking changes, but I recommend refactoring to use CouponOr methods as fast as possible.
Package Rankings
Top 15.02% on Packagist.org
Badges
Extracted from project README
Latest Version on Packagist Tests Code Quality Code Coverage Infection Larastan