webrek/laravel-state-machine
pending to paid if payment_validated guard passes").pending → paid → shipped).applied → interviewed → hired).submitted → reviewed → approved).idle → updating → active).Adopt if:
completed if reviewed is false").Look elsewhere if:
active/inactive—use Laravel’s built-in softDeletes or model events).For Executives: "This package lets us model complex business workflows (e.g., order fulfillment, approvals) as self-documenting state machines—reducing bugs from manual state management. For example, we can enforce that an order can’t ship unless it’s paid, with automatic logs for compliance. It’s like adding a ‘traffic cop’ for our data, cutting support costs and speeding up development for workflow-heavy features."
For Engineering: *"We’re adding a declarative state machine for Eloquent models to replace ad-hoc transition logic. Key benefits:
canShip() checks inventory).paid).transition_history table (optional).How can I help you explore Laravel packages today?