Skip to content

Commit

Permalink
chore: update package versions and simplify state transition logic
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Dec 11, 2024
1 parent 73fcc1d commit 75297e8
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 33 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
"php-ffmpeg/php-ffmpeg": "^1.3",
"pusher/pusher-php-server": "^7.2.6",
"spatie/eloquent-sortable": "^4.4",
"spatie/laravel-collection-macros": "^7.14.1",
"spatie/laravel-collection-macros": "^7.14.2",
"spatie/laravel-flash": "^1.10",
"spatie/laravel-google-fonts": "^1.4.1",
"spatie/laravel-html": "^3.11.1",
"spatie/laravel-medialibrary": "^11.11.0",
"spatie/laravel-model-states": "^2.7.2",
"spatie/laravel-model-states": "^2.8.0",
"spatie/laravel-permission": "^6.10.1",
"spatie/laravel-prefixed-ids": "^1.4.0",
"spatie/laravel-responsecache": "^7.6.2",
Expand Down
53 changes: 27 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Domain/Groups/States/GroupState.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public static function config(): StateConfig
{
return parent::config()
->default(Pending::class)
->allowTransition(Pending::class, Verified::class);
->allowAllTransitions();
}
}
3 changes: 1 addition & 2 deletions src/Domain/Users/States/UserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static function config(): StateConfig
{
return parent::config()
->default(Pending::class)
->allowTransition(Pending::class, Verified::class)
->allowTransition(Pending::class, Failed::class);
->allowAllTransitions();
}
}
3 changes: 1 addition & 2 deletions src/Domain/Videos/States/VideoState.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static function config(): StateConfig
{
return parent::config()
->default(Pending::class)
->allowTransition(Pending::class, Verified::class)
->allowTransition(Pending::class, Failed::class);
->allowAllTransitions();
}
}

0 comments on commit 75297e8

Please sign in to comment.