hyn/state-machine
A lightweight state machine for Laravel that lets you define states and transitions on Eloquent models, validate and apply transitions cleanly, and keep business logic out of your controllers.
hyn/state-machine adds finite state machine behavior to Laravel Eloquent models. Define the states an entity may occupy and the transitions allowed between them; the package enforces those rules, rejects invalid transitions, and persists the current state on the model.
How can I help you explore Laravel packages today?