kinsolee/horizon

此包已弃用,不再维护。未建议替代包。

Laravel 队列的仪表板和代码驱动配置。

v4.1.0 2020-03-24 16:25 UTC

README

Horizon 基于官方的 Laravel Horizon 包。还包含了 Web UI。

如果你更喜欢纯 RESTful API 并想自定义 UI,可以参考 servocoder 的 Lumen-horizon

安装

  1. 运行 composer 以添加依赖。
composer require kinsolee/horizon-lumen
  1. 安装 horizon 或仅发布资产
php artisan horizon:install // This will copy the config file to the config directory
php artisan horizon:assets

问题

  • 当运行 horizon:assets/horizon:install 时,如果你遇到以下错误
Type error: Argument 1 passed to Laravel\Horizon\Repositories\RedisMasterSupervisorRepository::__construct() must implement interface Illuminate\Contr
  acts\Redis\Factory, instance of Redis given

请确保你在 boorstrap/app.php 文件中注册了 Illuminate\Redis\RedisServiceProvider::class

  • 如果你在子目录中部署 horizon-lumen,请指定 config/horizon.php 中的 base_path

  • 如果你出现错误:ERROR: RuntimeException: A facade root has not been set.,请取消注释 bootstrap/app.php 中的 $app->withFacades();

官方文档

Horizon 的文档可以在 Laravel 网站 上找到。

贡献

感谢您考虑为 Horizon 贡献!贡献指南可以在 Laravel 文档 中找到。

行为准则

为了确保 Laravel 社区对所有成员都友好,请查看并遵守 行为准则

安全漏洞

请查看 我们的安全策略 了解如何报告安全漏洞。

许可证

Laravel Horizon 是开源软件,遵循 MIT 许可证