โ˜… A package to assign statuses to Eloquent models

1 ยท Freek Van der Herten ยท Feb. 12, 2018, 6:33 a.m.
Imagine you want to have an Eloquent model hold a status. It's easily solved by just adding a status field to that model and be done with it. But in case you need a history of status changes or need to store some extra info on why a status changed, only adding a single field won't cut it. To handle these cases, our team has created a package called laravel-model-status. After installing the package you must add the HasStatuses trait to all models that need to have statuses. You can set a new sta...