Skip to content

Releases: glhd/special

0.11.0

15 Sep 20:08
07aec53

Choose a tag to compare

Breaking Changes

  • Rename attribute-related methods to be more explicit by @inxilpro in #4 — this is technically a breaking change, but only affects you if you extended the attributes or values methods in EloquentBacking.

Full Changelog: 0.10.0...0.11.0

0.10.0

05 Sep 18:55
6496534

Choose a tag to compare

0.10.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.9.0...0.10.0

0.9.0

26 Jun 14:43
000dbea

Choose a tag to compare

0.9.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.8.0...0.9.0

0.8.0

12 Mar 20:28

Choose a tag to compare

0.8.0 Pre-release
Pre-release

Laravel 11 support and tests

Full Changelog: 0.7.0...0.8.0

0.7.0

08 Sep 13:52

Choose a tag to compare

0.7.0 Pre-release
Pre-release

This release just makes modelClass(), model(), and getKeyColumn() static to allow for future features.

0.6.0

15 Aug 19:23

Choose a tag to compare

0.6.0 Pre-release
Pre-release

Added model observation, so that if a model associated with a special enum is updated or deleted, it clears the cache. Prior to this change, updating a model would require manually clearing the singleton.

Now that's handled for you automatically:

assert(Plans::Monthly->get()->cents === 199_00);

// Update a separate copy of the model
Plans::Monthly->get()->update(['cents' => 99_00]);

// Retrieving a third copy will reflect the changes
assert(Plans::Monthly->get()->cents === 99_00);

0.5.1

15 Aug 14:51

Choose a tag to compare

0.5.1 Pre-release
Pre-release

Changed BackingModelNotFound so that it doesn't trigger a 404.

0.5.0

14 Aug 21:00

Choose a tag to compare

0.5.0 Pre-release
Pre-release

Renamed extractedValues back to values and renamed values to createWith — now createWith() is the main userland extension point for custom attributes.

0.4.0

14 Aug 20:52

Choose a tag to compare

0.4.0 Pre-release
Pre-release

Renamed hasSpecial macro to forSpecial

0.3.1

14 Aug 20:24

Choose a tag to compare

0.3.1 Pre-release
Pre-release

Added attributesForCreation() for another dynamic extension point.