runner/laravel-fsm

heshen fsm for laravel

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

This package is auto-updated.

Last update: 2024-10-24 17:21:57 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');