open-southeners/laravel-model-status
Lightweight Laravel model status handling using native PHP enums—no extra tables needed. Define a status enum, attach it via a PHP attribute, and use a trait for helpers like setStatus, setStatusWhen, hasStatus, and optional status events.
Draft, Published, Archived) across Laravel models, reducing ad-hoc database columns or custom logic.Pending, Shipped, Delivered).Active, Suspended, Banned).spatie/laravel-activitylog + custom logic).enum libraries for other frameworks.For Executives: "This package lets us standardize state management (e.g., content approvals, order statuses) with zero database clutter. By using PHP enums, we reduce bugs from manual status checks and speed up development—ideal for scaling features like editorial workflows or user account states. MIT-licensed and Laravel-native, it’s a low-risk way to cut technical debt."
For Engineering:
*"Replace scattered is_active booleans or custom status tables with a trait-based, enum-driven solution. Key benefits:
Post model gains PostStatus::Published checks in a single line. Perfect for greenfield projects or refactoring legacy status logic."*How can I help you explore Laravel packages today?