2、安装教程
### ❤ 安装教程 **Laravel工作流引擎安装:** composer require guoguo/laravelflow **移动相关资源及配置文件** web\laravel\vendor\guoguo\laravelflow\assets\work 复制到 public\static 目录下 web\laravel\vendor\guoguo\laravelflow\src 复制到 config 目录下 **配置路由:** use laravelflow\Api; Route::any('/wf/designapi/{act}/{flow_id?}', '\laravelflow\Api@designapi');//设计器接口 Route::any('/wf/wfdo/{act}/{wf_type?}/{wf_fid?}/', '\laravelflow\Api@wfdo');//审批流程接口 Route::any('/wf/wfapi/{act?}', '\laravelflow\Api@wfapi');//工作流前端管理统一接口 **调用工作流:** - 调用状态 ```json {{@laravelflow\Api::wfaccess('status',['status'=>$v->status])}} ``` - 调用审核按钮 ```json {{@laravelflow\Api::wfaccess('btn',['id'=>$v->id,'type'=>'news','status'=>$v->status])}} ``` - 调用审核日志 ```json {{@laravelflow\Api::wfaccess('log',['id'=>$info->id,'type'=>'news'])}} ```