Skip to content

Releases: FrittenKeeZ/laravel-vouchers

v0.7.3

15 Oct 15:58
1707b4b

Choose a tag to compare

What's Changed

  • Bump actions/checkout from 4 to 5 by @dependabot[bot] in #24
  • Bump aglipanci/laravel-pint-action from 2.4 to 2.6 by @dependabot[bot] in #26
  • Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot[bot] in #25
  • Bump stefanzweifel/git-auto-commit-action from 6 to 7 by @dependabot[bot] in #27
  • Update Vouchers::create() to include owner in first save in 5c257dd

New Contributors

Full Changelog: 0.7.2...0.7.3

v0.7.2

24 Sep 08:51

Choose a tag to compare

What's Changed

Added

  • Add Config::withCode() / Vouchers::withCode() as short-hand call for chaining withMask(), withoutPrefix(), withoutSuffix() and withoutSeparator()
  • Add infinite loop detection when using Vouchers::batch() and Vouchers::create()

Full Changelog: 0.7.1...0.7.2

v0.7.1

19 Sep 13:40

Choose a tag to compare

What's Changed

Added

  • Easy way to override model class names on runtime with Config::withModels() and Config::resetModels()

Full Changelog: 0.7.0...0.7.1

v0.7.0

23 Jul 09:46
e26b51b

Choose a tag to compare

What's Changed

Added

  • New Vouchers::unredeem() and Vouchers::unredeemable() methods
  • New Voucher::unredeem() and Voucher::isUnredeemable() methods
  • New Voucher::unredeeming() and Voucher::unredeemed() and Voucher::shouldMarkUnredeemed() events
  • Additional exceptions for redeeming and unredeeming vouchers:
    VoucherExpiredException
    VoucherRedeemedException
    VoucherRedeemerNotFoundException
    VoucherUnstartedException
  • Added extra query scopes for Vouchers:
    Voucher::withUnredeemable()
    Voucher::withoutUnredeemable()

Changed

  • Updated Vouchers::with*() methods to accept null as a valid value for resetting to default
  • Improved PHPDocs comments for many methods and classes

Deprecated

  • Dropped support for PHP 8.1

Breaking Changes

  • Renamed VoucherAlreadyRedeemedException to VoucherStateException

Full Changelog: 0.6.2...0.7.0

v0.6.2

10 Jul 12:02
3599b3a

Choose a tag to compare

What's Changed

  • Allow Vouchers::withStart*() and Vouchers::withExpire*() methods to accept null by @FrittenKeeZ in #20

Full Changelog: 0.6.1...0.6.2

v0.6.1

09 Jul 12:27
0ae9f5c

Choose a tag to compare

What's Changed

Full Changelog: 0.6.0...0.6.1

v0.6.0

27 Feb 16:44
0d18205

Choose a tag to compare

What's Changed

  • PHPUnit to Pest Converter by @FrittenKeeZ in #18
    • Add support for Laravel 12
    • Dropped support for Laravel 9
    • Replaced PHPUnit with Pest

Full Changelog: 0.5.0...0.6.0

v0.5.0

13 Jun 15:39
044a91a

Choose a tag to compare

What's Changed

  • Migrations cleanup by @FrittenKeeZ in #17
    • Made all migrations publishable
    • Removed v1 -> v2 migration command
    • Removed legacy factories from tests

Full Changelog: 0.4.1...0.5.0

v0.4.1

13 Jun 13:27
9928353

Choose a tag to compare

What's Changed

Full Changelog: 0.4.0...0.4.1

v0.4.0

12 Jun 14:04
4c4d796

Choose a tag to compare

What's Changed

  • Laravel 11 support by @FrittenKeeZ in #15
  • Dropped support for Laravel <9
  • Dropped support for PHP <8.1

Full Changelog: 0.3.2...0.4.0