> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oriv.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Up Laravel Horizon with ORIV 

> Set up Laravel Horizon with ORIV in minutes! Monitor queues &#038; jobs easily with this simple step-by-step setup guide.

**[Laravel Horizon](https://laravel.com/docs/11.x/horizon)** is a powerful dashboard and configuration tool for Laravel queues, providing deep insight into your job processing. If you are using ORIV to deploy your **[Laravel application](https://oriv.cloud/laravel-hosting/)**, setting up Horizon is simple. Follow the step-by-step process to set up Laravel Horizon with ORIV.

## **Step 1: Go to the Laravel Site**

First, go to your site and navigate to the **‘Laravel’** section in the dashboard. Select your **‘Application’** from the list of deployed Laravel applications.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **Step 2: Install The Laravel Horizon**

Now install Laravel Horizon locally by running the following commands and commit the changes to git:

```
composer require laravel/horizon 
```

```
php artisan horizon:install
```

Now, if you go back to the ORIV dashboard, you will see that the Horizon is installing. After the installation process is completed, you will see that the Laravel Horizon set up proper.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

Once the command is processed, Laravel Horizon will be installed. You can go back to the Laravel dashboard, where you will see the notice that Laravel Horizon is installed. And if you go to the Horizon dashboard, you will be able to see the stats of your Laravel Application

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

### **Add Queue Restart to Deployment Script**

To ensure that your queue workers are properly restarted after each deployment, add the following command to the **Deployment Script** field in your application settings:

```
$ORIV_PHP artisan horizon:terminate
```

This will restart the Horizon process gracefully after finishing the running tasks.

Read this [**official Laravel documentation**](https://laravel.com/docs/11.x/queues#queue-workers-and-deployment) for more best practices on queue worker deployment.

That is it! You have successfully set up Laravel Horizon with ORIV. With Horizon, now you can monitor your queues efficiently and gain better insight into your application’s background job processing.

Still stuck? Contact our [dedicated support team](https://support.oriv.cloud/) for any of your queries.
