runner/laravel-fsm

heshen fsm for laravel

v1.0.0 2018-07-18 10:38 UTC

This package is auto-updated.

Last update: 2024-12-24 17:44:48 UTC


README

Installation

composer require runner/laravel-fsm

Configuration

php artisan vendor:publish

configure blueprints in fsm.php

<?php
return [
    App\Models\Order::class => App\Bus\Blueprints\OrderBlueprint::class,
];

Usage

use App\Models\Order;

Fsm::make(Order::find('xxxxx'))->apply('pay');