Configure Nightwatch on Cloud
Install Nightwatch package
Install the Laravel Nightwatch package in your application locally using Composer:
Run
composer require laravel/nightwatch on your local machine to update your composer.json and composer.lock files before deploying.Configure the agent as a background process
To ensure the Nightwatch agent is always running and sending data, configure it as a background process in your Cloud environment:


- Go to your App cluster in the Cloud dashboard.

- Click New background process.

- Choose Custom worker.

- Enter the following command:
- Save your changes and redeploy your application.
Use Cloud and Nightwatch logs
To send your logs to both Laravel Cloud Logs and Nightwatch, use Laravel’s log stacks feature. Update your.env file as shown below to enable logging to both services:

