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

Laravel Model States Laravel Package

spatie/laravel-model-states

Add state-machine behaviour to Eloquent models: each state is its own class, with serialization handled automatically and state transitions made easy.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
spatie/laravel-view-models 0.94 Move complex view-prep logic out of controllers into dedicated Laravel view model classes. Extend Spatie\ViewModels\ViewModel to transform data for views, expose computed properties, and keep templates clean and focused. 1,093 1,100 60 85K 0 18.8 27.6 MIT 8 months ago
View on GitHub
Context7
spatie/laravel-deleted-models 0.94 Automatically copy deleted Eloquent model attributes into a deleted_models table to create a recycle bin for records. Restore deleted models by ID when needed. An alternative to soft deletes for preserving deletion history without keeping rows in place. 411 413 26 21K 0 13.9 25.1 MIT 8 months ago
View on GitHub
spatie/laravel-data 0.93 Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. 1,801 1,815 293 4M 6 51.3 63.5 MIT 1 week ago
View on GitHub
Context7
spatie/laravel-visit 0.93 Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. 159 160 9 756 0 11.0 11.1 MIT 7 months ago
View on GitHub
spatie/laravel-model-status 0.90 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(). 1,056 1,060 83 116K 0 22.9 29.7 MIT 8 months ago
View on GitHub
spatie/laravel-model-flags 0.90 Add flags to Eloquent models without migrations using a simple trait. Flag models, check flags, and query flagged or not flagged records to build idempotent, restartable code like mail commands. 454 455 22 62K 0 15.7 31.9 MIT 6 months ago
View on GitHub
Context7
innoge/laravel-enum-states 0.89 A state machine for Eloquent built on native PHP enums. Define transitions, defaults, and lifecycle actions on the enum itself, register fields with a single attribute, and keep your normal model casts. Invalid transitions throw; defaults apply automatically. 5 5 1 3K 0 20.1 44.0 MIT 6 days ago
View on GitHub
acacha/stateful-eloquent 0.88 Stateful Eloquent adds state handling to Laravel models, letting you define and transition between states with clean, expressive syntax. A lightweight helper for tracking model status without extra dependencies. 11 — 6 — 0 0.2 — — —
View on GitHub
sebdesign/laravel-state-machine 0.88 A lightweight Laravel package for adding state machines to Eloquent models. Define states, transitions, and guards, then move records safely between states with validation, events, and clear exceptions. Integrates cleanly with Laravel and supports custom classes. 341 — 59 — 2 12.1 0.4 MIT 7 months ago
View on GitHub
bidzm/eloquent-state-machine 0.88 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. 1 1 0 0 0 0.0 — MIT —
View on GitHub
ringierimu/state-workflow 0.87 State workflow for Laravel Eloquent models: define states and allowed transitions, guard changes with custom rules, and react to transitions via events. Centralizes business status logic so it stays clean, testable, and consistent across your app instead of scattered controllers. 31 34 12 826 0 7.4 20.9 MIT 8 months ago
View on GitHub
aw-studio/laravel-states 0.86 Laravel States adds state machine support to Eloquent models, letting you define states, transitions, and guards cleanly. Track model status, control allowed changes, and keep your workflows predictable without extra boilerplate. 44 44 0 33 1 19.7 3.9 — 2 weeks ago
View on GitHub
hyn/state-machine 0.86 A lightweight state machine for Laravel that lets you define states and transitions on Eloquent models, validate and apply transitions cleanly, and keep business logic out of your controllers. 16 16 1 3 0 0.1 1.0 — —
View on GitHub
juststeveking/laravel-business-process 0.86 Define business processes as explicit steps and transitions, then run them predictably in your Laravel app. Encapsulates multi-step workflow logic in dedicated classes, keeping controllers and models clean, and making complex flows easier to test, reason about, and maintain. 66 66 1 78 1 0.8 4.6 MIT 3 years ago
View on GitHub
samuel4x4/state-machine-bundle 0.86 samuel4x4/state-machine-bundle provides a simple state machine for PHP/Laravel apps: define states and transitions, guard changes, and hook actions into workflow updates. Keep status logic centralized, explicit, and testable instead of scattering conditionals across models. 0 0 0 0 0 5.8 — MIT 8 months ago
View on GitHub
orobogenius/laravel-model-statable 0.86 Add state and status management to any Eloquent model. Apply the trait to define allowed statuses, transition between them, query by state with scopes, and optionally track status history, all through a simple, expressive Laravel API. 11 — 0 — 0 0.4 — MIT 7 years ago
View on GitHub
abather/spatie-laravel-model-states-actions 0.86 Add state-based actions to Laravel views with this extension for spatie/laravel-model-states. Define per-state authorization abilities, skip checks when needed, and customize action icons and colors. Includes transition checks via canTransitionTo. 4 4 1 103 0 23.0 21.5 MIT 3 weeks ago
View on GitHub
juststeveking/state-machine 0.86 A lightweight state machine for Laravel and PHP applications. Define states and allowed transitions, then move models or objects through workflows with clear, testable rules and guard conditions. 2 2 0 321 0 10.6 30.6 MIT 5 months ago
View on GitHub
my-com/laravel-conditional-actions 0.86 A Laravel package for defining conditional actions: attach rules to actions and run them only when their conditions are met. It helps keep decision logic organized, reusable, and easy to integrate into Laravel apps with a simple, expressive API for common workflows. 18 — 1 — 0 0.2 — MIT 6 years ago
View on GitHub
christhompsontldr/laravel-fsm 0.86 A plug-and-play finite state machine for Laravel with guards, actions, callbacks, events, and transition logging. Define states and transitions per model column to power order workflows, verification flows, and more. 8 7 0 5 0 11.9 2.9 MIT 6 months ago
View on GitHub
Context7
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.
alphabalex/messaging-made-easy
rawphp/warp
shootkiran/merobug
narakode/fineauth
numencode/wn-syncops-plugin
ibnnajjaar/mib-global-pay
ably/pubsub-server
mstfkhazaal/defender
mfonte/base62x
karnoweb/metapilot
tobya/bcsapiwrapper
swalker2/cpanel
vish4395/laravel-translation-manager
morningtrain/economic
teksite/systeminfo-laravel
atomcms/voting
run6/weather
siokas/laravelembeddirectives
adamlien/pkuuids
gilsonsouza/lara-doc-generator