szana8/laraflow
LaraFlow is a Laravel package for adding workflows and state machines to Eloquent models. Define states, transitions, guards, and actions, then move records through controlled paths with events and validation for cleaner approval and status management.
Architecture fit
$model->status = 'shipped' directly. The pattern only holds if the team adopts a hard convention (or static analysis/lint rule) that all state writes go through the flow.Integration feasibility
composer.json constraints before committing; expect that a fork with widened constraints may be required.Technical risk
spatie/laravel-model-states and asantibanez/laravel-eloquent-state-machines). We should document why LaraFlow is chosen over these — likely ergonomics or generator support — or choose one of them instead.Key questions
composer.json, and does the code actually run on Laravel 11/12 and PHP 8.3+?status columns, and does it tolerate legacy values outside the declared state set?Stack fit
Migration path
status column: enumerate current values, map them to flow states one-to-one, and define transitions that mirror what the application already permits. Do not redesign the lifecycle in the same step as adopting the library.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?