Looking to hire Laravel developers? Try LaraJobs

laravel-workflow maintained by wuwx

Author
Last update
2021/03/26 11:27 (dev-master)
License
Links
Downloads
59
Tags

Comments
comments powered by Disqus

laravel-workflow

<?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;
});