wuwx/laravel-workflow

v2.1.0 2018-11-29 12:32 UTC

This package is auto-updated.

Last update: 2024-12-26 21:00:45 UTC


README

<?php
return [
    'workflows' => [
        'process_1' => [
            'places' => ['initial', 'place_1', 'place_2'],
            'transitions' => [
                'transition_1' => [
                    'froms' => ['initial'], 'tos' => ['place_1'],
                ],
                'transition_2' => [
                    'froms' => ['place_1'], 'tos' => ['place_2'],
                ],
            ],
        ],
     ],
];
Gate::define('viewWorkflow', function ($user) {
    return true;
});