bidzm/eloquent-state-machine
A Laravel package that adds state machine behavior to Eloquent models. Define states and allowed transitions, guard or authorize changes, and persist the current state automatically. Keeps model lifecycle logic clean and predictable, with hooks and events for reacting to transitions.
bidzm/eloquent-state-machine adds a lightweight finite state machine to Laravel Eloquent models. You declare the allowed states and transitions on the model, then move between them through guard-checked transitions that keep the current state in a regular attribute and can fire events on each change.
How can I help you explore Laravel packages today?