# spatie/laravel-model-status

Easily add statuses to your models

Repository: https://github.com/spatie/laravel-model-status
Canonical: https://ross.abutalabs.com/products/laravel-model-status
Homepage: https://freek.dev/973-a-package-to-assign-statuses-to-eloquent-models
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, eloquent, model, status, php
Last push: 2026-06-02T06:36:07+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 85, release rhythm 39, longevity 100
- inputs: {"age_days": 3136, "days_push": 92, "days_rel": 193, "gap_med": 182.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1058, forks 85 (observed 2026-08-28T04:03:24.997969+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: orm, state-management
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel-package, eloquent, status-tracking, spatie, model-states, laravel

## Member repositories
- spatie/laravel-model-status (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.997969+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:52.515793+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-model-status (fetched 2026-08-28T04:03:24.997969+00:00, sha 04cac7e859a5)
  - homepage: https://freek.dev/973-a-package-to-assign-statuses-to-eloquent-models (fetched 2026-08-29T12:59:24.078646+00:00, sha e18fa19e2ae6)
  - site_page: https://freek.dev/about (fetched 2026-08-29T12:59:24.081303+00:00, sha e0ef9dccbb05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
