Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Model Status Laravel Package

spatie/laravel-model-status

Add status history to any Eloquent model with Spatie’s HasStatuses trait. Set statuses (strings or enums), store reasons/extra info, and retrieve current or previous statuses via convenient helpers like status() and latestStatus().

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables rapid implementation of status-driven workflows (e.g., order management, user onboarding, task tracking) with built-in history tracking and reason logging, eliminating custom development for audit trails
  • Supports build-vs-buy decisions by providing a mature, MIT-licensed solution from Spatie (proven Laravel ecosystem reputation) vs. reinventing status management logic in-house
  • Accelerates roadmap delivery for compliance-sensitive features (e.g., financial approvals, content moderation) through type-safe enum validation and automated status change events
  • Reduces technical debt by abstracting complex status queries (e.g., "find all models with pending or processing status") via native Eloquent scopes

When to Consider This Package

  • Adopt when you need historical status tracking with change reasons, enum-based validation for transitions, or complex status-based queries (e.g., "all users who were ever 'suspended'")
  • Use for scenarios requiring status change events (e.g., triggering notifications on status updates) or multi-model status consistency (e.g., shared status definitions across User/Order models)
  • Look elsewhere if you only need a single static status value (a simple database enum column suffices) or require advanced state machine behavior with conditional transitions (e.g., "only allow 'approved' → 'shipped' if inventory > 0")

How to Pitch It (Stakeholders)

Executives: "This package delivers enterprise-grade status tracking with zero development overhead—ensuring compliance through auditable change histories, reducing customer support tickets from status confusion, and accelerating feature delivery for critical workflows like order management or user lifecycle stages. It’s a proven, open-source solution that eliminates custom code risks while meeting regulatory requirements."

Engineering: "It’s a battle-tested Laravel package that handles status history, enum validation, and complex queries out-of-the-box. Integrates in minutes via a single trait—no need to reinvent status logic or maintain custom migration schemas. Backed by Spatie’s rigorous testing and active maintenance, it reduces technical debt while ensuring seamless Eloquent integration."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport