Releases: FrittenKeeZ/laravel-vouchers
Releases · FrittenKeeZ/laravel-vouchers
v0.7.3
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
- @dependabot[bot] made their first contribution in #24
Full Changelog: 0.7.2...0.7.3
v0.7.2
What's Changed
Added
- Add
Config::withCode()/Vouchers::withCode()as short-hand call for chainingwithMask(),withoutPrefix(),withoutSuffix()andwithoutSeparator() - Add infinite loop detection when using
Vouchers::batch()andVouchers::create()
Full Changelog: 0.7.1...0.7.2
v0.7.1
What's Changed
Added
- Easy way to override model class names on runtime with
Config::withModels()andConfig::resetModels()
Full Changelog: 0.7.0...0.7.1
v0.7.0
What's Changed
Added
- New
Vouchers::unredeem()andVouchers::unredeemable()methods - New
Voucher::unredeem()andVoucher::isUnredeemable()methods - New
Voucher::unredeeming()andVoucher::unredeemed()andVoucher::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 acceptnullas 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
VoucherAlreadyRedeemedExceptiontoVoucherStateException
Full Changelog: 0.6.2...0.7.0
v0.6.2
What's Changed
- Allow
Vouchers::withStart*()andVouchers::withExpire*()methods to acceptnullby @FrittenKeeZ in #20
Full Changelog: 0.6.1...0.6.2
v0.6.1
What's Changed
- Change withEntities to accept any iterable by @FrittenKeeZ in #19
Full Changelog: 0.6.0...0.6.1
v0.6.0
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
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
What's Changed
- Replaced PHP CS Fixer with Laravel Pint by @FrittenKeeZ in #16
Full Changelog: 0.4.0...0.4.1
v0.4.0
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