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.
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?
2 comments
[ 2.4 ms ] story [ 12.7 ms ] thread