Horizon Horizon is based on the official Laravel Horizon package.The web UI is also included.
If you prefer a pure restful api and want to customize the UI, you can refer to Lumen-horizon by servocoder.
All of your worker configuration is stored in a single, simple configuration file, allowing your configuration to stay in source control where your entire team can collaborate.
composer require kinsolee/horizon-lumen
2.Add the vendor:publish command dependency and publish its assets and config file.
composer require "laravelista/lumen-vendor-publish" --dev
-
Add
Laravelista\LumenVendorPublish\VendorPublishCommand
toapp/Console/Kernel.php
file. -
Add
$app->register(\Laravel\Horizon\HorizonServiceProvider::class);
in yourboorstrap/app.php
file. -
Publish horizon vendor
php artisan vendor:publish --provider="Laravel\Horizon\HorizonServiceProvider"
- If you get the follow errors when you run vendor:publish:
Type error: Argument 1 passed to Laravel\Horizon\Repositories\RedisMasterSupervisorRepository::__construct() must implement interface Illuminate\Contr
acts\Redis\Factory, instance of Redis given
Make sure you register Illuminate\Redis\RedisServiceProvider::class
in your boorstrap/app.php
file.
- If you deploy horizon-lumen on sub-directory, please specific
base_path
in config/horizon.php
Documentation for Horizon can be found on the Laravel website.
Thank you for considering contributing to Horizon! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Please review our security policy on how to report security vulnerabilities.
Laravel Horizon is open-sourced software licensed under the MIT license.