thefeqy/laravel-model-status
Laravel Model Status adds simple status management to Eloquent models: assign statuses, define allowed transitions, query by status, and integrate status badges into Laravel apps.
StatusCast turns the status field into a typed Status object, enabling clearer product logic such as $model->status->isActive() and $model->status->isInactive(). This supports admin deactivation, account suspension, catalog visibility, content publishing, and similar active/inactive workflows.$cascadeDeactivate lets deactivating a parent model also deactivate defined related models, e.g. deactivating a Category deactivates its products. This supports roadmap items around catalog management, organization/team deactivation, and dependent resource cleanup.For executives: v1.5.0 is a minor feature release that strengthens model lifecycle management. It adds type-safe status handling and automatic cascade deactivation, reducing manual cleanup and inconsistent active/inactive states across related records. Upgrade effort appears low via composer update; no breaking changes are indicated.
For engineering: Adopt the release to replace ad-hoc status checks with StatusCast and to centralize dependent deactivation through $cascadeDeactivate. Recommend upgrading, adding tests for status helper methods and parent-child deactivation, and validating cascade performance/transaction behavior on large relationships before enabling it broadly.
How can I help you explore Laravel packages today?