PHP code example of runner / laravel-fsm

1. Go to this page and download the library: Download runner/laravel-fsm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

runner / laravel-fsm example snippets



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

use App\Models\Order;

Fsm::make(Order::find('xxxxx'))->apply('pay');
bash
php artisan vendor:publish