webrek/laravel-state-machine
Transition::using($closure) that run inside the same
database transaction as the state change and history record — if the effect
throws, the whole transition rolls back (and the in-memory state is reverted).StateMachine::toMermaid() / StateMachineHandler::toMermaid() to render the
machine as a Mermaid stateDiagram-v2.state-machine:diagram artisan command to print a definition's diagram.apply() now wraps the state change, effect and history in a single database
transaction.StateMachine definitions: states, transitions and an initial
state, validated on use.Transition builder with multiple source states, a target, and an optional
guard closure.HasStateMachines trait that seeds the initial state on create and exposes a
stateMachine() handler with state(), is(), can(), allowed(),
canTransitionTo() and apply().StateTransitioning and StateTransitioned events.history() query.How can I help you explore Laravel packages today?