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 Dec 11, 2024
1 parent 2ca065e commit 9bd84ec
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.8.0 - 2024-12-11

### What's Changed

* Make using allowAllTransitions() less cumbersome by @jonjakoblich in https://github.com/spatie/laravel-model-states/pull/265

### New Contributors

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

**Full Changelog**: https://github.com/spatie/laravel-model-states/compare/2.7.2...2.8.0

## 2.7.2 - 2024-09-27

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




```
You can now do:

Expand All @@ -276,6 +289,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 9bd84ec

Please sign in to comment.