Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Mar 1, 2024
1 parent d3f7be0 commit 96ff656
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to `laravel-model-states` will be documented in this file (#188)

## 2.7.0 - 2024-03-01

### What's Changed

* Implement SerializesCastableAttributes in StateCaster by @piotrjoniec in https://github.com/spatie/laravel-model-states/pull/251

### New Contributors

* @piotrjoniec made their first contribution in https://github.com/spatie/laravel-model-states/pull/251

**Full Changelog**: https://github.com/spatie/laravel-model-states/compare/2.6.2...2.7.0

## 2.6.2 - 2024-02-15

### What's Changed
Expand Down Expand Up @@ -212,6 +224,7 @@ $model->canTransitionTo(StateB::class, 'status');




```
You can now do:

Expand All @@ -230,6 +243,7 @@ $model->status->canTransitionTo(StateB::class);




```
This change means that a lot of boilerplate code can be removed. Also keep in mind that this package wants you to always use state objects, and never their serialized values. That's why many other methods have been removed, in favour of Laravel's built-in model casts.

Expand Down

0 comments on commit 96ff656

Please sign in to comment.