

By default, this entry contains a production and local environment. This configuration option is an array of environments that your application runs on and defines the worker process options for each environment. This Redis connection name is reserved and should not be assigned to another Redis connection in the database.php configuration file or as the value of the use option in the horizon.php configuration file.Īfter installation, the primary Horizon configuration option that you should familiarize yourself with is the environments configuration option. Horizon uses a Redis connection named horizon internally. Each configuration option includes a description of its purpose, so be sure to thoroughly explore this file. This configuration file allows you to configure the queue worker options for your application.
TIMED SCREENSHOT WINDOWS 10 INACTIVE INSTALL
You may install Horizon into your project using the Composer package manager:Īfter publishing Horizon's assets, its primary configuration file will be located at config/horizon.php. Therefore, you should ensure that your queue connection is set to redis in your application's config/queue.php configuration file. Laravel Horizon requires that you use Redis to power your queue. By defining your application's worker configuration in a version controlled file, you may easily scale or modify your application's queue workers when deploying your application. When using Horizon, all of your queue worker configuration is stored in a single, simple configuration file. Horizon allows you to easily monitor key metrics of your queue system such as job throughput, runtime, and job failures. Laravel Horizon provides a beautiful dashboard and code-driven configuration for your Laravel powered Redis queues. Horizon augments Laravel's queue with additional features that may be confusing if you are not already familiar with the basic queue features offered by Laravel. Before digging into Laravel Horizon, you should familiarize yourself with Laravel's base queue services.
