Conditional StateConfig #260
goldjunge4
started this conversation in
General
Replies: 2 comments 2 replies
-
|
The question is a bit old, but maybe someone else is intrested: I have solved it with Policies, which have to be authorized on the controler route anyway. There might be ways to achieve it with custom transitions, but I thought it would become to entangled to solve it inside the state machine provided by the lib. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I'm needing something similar, I'd like to be able to contextualize transitions. For instance when I'm in controller A, all transitions are allowed while in controller B only some of them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i am using laravel model states since a longer time, but know i have the request, that i have a different StateConfig (different States) based on an user or a field value? Is there a way to achieve this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions