spatie/laravel-model-status
Easily add statuses to your models observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 85
- Release rhythm 39
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 182.0
- age_days: 3136
- days_rel: 193
- days_push: 92
- n_releases_24m: 3
Adoption not part of the score
1058 stars · 85 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel package that adds status tracking to Eloquent models via a HasStatuses trait. It stores status changes in a dedicated table, keeping a full history with reasons for each change.
Use cases
- track status history of eloquent models
- add statuses with reasons to laravel models
- query models by their current status
- store why a status changed in laravel
- manage order or workflow states in laravel app
When to choose
- you need a full history of status changes, not just a single field
- you want to attach reasons or metadata to each status change
- you need to query models by their current status efficiently
When to avoid
- a simple status column on the model is enough
- you don't use Laravel or Eloquent
- you need complex state machines with transitions and guards
Facets
library · maturity stable
orm state-management web-development backend developer-tools php laravel-package eloquent status-tracking spatie model-states laravel
3 sources
- readme: https://github.com/spatie/laravel-model-status · fetched 2026-08-28 · 04cac7e859a5
- homepage: https://freek.dev/973-a-package-to-assign-statuses-to-eloquent-models · fetched 2026-08-29 · e18fa19e2ae6
- site_page: https://freek.dev/about · fetched 2026-08-29 · e0ef9dccbb05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-model-status | main | 72 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-model-status")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem