laravel-state-machines

Community

Master Laravel state transitions with Spatie.

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.