1.lumen大于等于5.5.*
2.lumen的queue必须为Redis
3.安装了composer依赖包管理器
首先 安装laravelista/lumen-vendor-publish包,horizon依赖它发布资源
执行命令:
composer require "laravelista/lumen-vendor-publish" --dev
再执行命令:
composer require servocoder/lumen-horizon "~1.0"
php artisan vendor:publish --tag=horizon-config
发布资源:
php artisan vendor:publish --tag=horizon-config
成功应该如图: