laravel-state-machines
CommunityMaster Laravel state transitions with Spatie.
Software Engineering#workflow#validation#laravel#state-machine#state-transitions#spatie-model-states
Authornextplus896
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables developers to implement robust, type-safe state machines in Laravel using the Spatie Model States package.
Core Features & Use Cases
- Spatie Model States integration with defined states, transitions, and validations
- State-specific behavior, guards, and transition side effects
- Type-safe checks and model helpers to orchestrate transitions
Quick Start
Install and configure the Spatie Model States package in your Laravel project. Define a state hierarchy with a base OrderState and concrete states, plus Transition classes for each change. Use the HasStates trait on your models and expose transition methods that call transitionTo(...).
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: laravel-state-machines Download link: https://github.com/nextplus896/durra-alaseel/archive/main.zip#laravel-state-machines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.