From 9bd84eccd96e75e22c0a03fda39d768fdf2ffd62 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Wed, 11 Dec 2024 09:59:34 +0000 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5864d08..615390e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -255,6 +267,7 @@ $model->canTransitionTo(StateB::class, 'status'); + ``` You can now do: @@ -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.