Re:A Package to Manage Model Status in Laravel
by PDFBolt on Wednesday January 29, 2025 @05:29AM
(#42863468)
Nice! Managing model states can get messy fast, especially when handling document workflows (like draft - approved - finalized PDFs). Does this package support custom state transitions with validation logic, or is it more of a predefined state machine?
Re:A Package to Manage Model Status in Laravel
by alchemy97 on Wednesday January 29, 2025 @05:00AM
(#42863296)
The Laravel Model Status package by Muhammed ElFeqy simplifies managing model statuses in Laravel applications. It automates the addition of status columns to models and migrations, provides an easy-to-use HasActiveScope trait, a Status enum, and middleware for ensuring active users. This package also includes a custom Artisan command to streamline your workflow and supports dynamic configuration for the column name, default value, and length.