Skip to content

v0.8.1

Choose a tag to compare

@FrittenKeeZ FrittenKeeZ released this 26 Jul 13:50
· 16 commits to master since this release

What's Changed

Changed

  • Moved the model $casts property to the Laravel 11+ casts() method on Voucher and Redeemer
  • Resolve morph aliases via Relation::getMorphAlias() in the withOwnerType() and withEntityType() scopes instead of instantiating the related model
  • Minor optimization to Vouchers::generate() - the character list length is now computed once per code instead of once per mask asterisk

Added

  • Additional tests covering morph map alias resolution in the voucher and entity scopes

Full Changelog: 0.8.0...0.8.1