Weave 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
Eloquent State Machine

Eloquent State Machine Laravel Package

bidzm/eloquent-state-machine

A Laravel package that adds state machine behavior to Eloquent models. Define states and allowed transitions, guard or authorize changes, and persist the current state automatically. Keeps model lifecycle logic clean and predictable, with hooks and events for reacting to transitions.

View on GitHub
Deep Wiki
Context7

bidzm/eloquent-state-machine adds a lightweight finite state machine to Laravel Eloquent models. You declare the allowed states and transitions on the model, then move between them through guard-checked transitions that keep the current state in a regular attribute and can fire events on each change.

  • Declarative state and transition definitions on the model
  • Guarded transitions that reject invalid state changes
  • Current state persisted in a standard Eloquent attribute
  • Hooks/events around each transition
  • Plays nicely with existing queries, casts, and mass assignment
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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package