Guides
Laravel Forge
Get started with Nightwatch on Laravel Forge.
Prerequisites
First, follow the regular steps in our quick start guide to begin.
Automatic Integration (Recommended)
Laravel Forge offers built-in support for Nightwatch. Get setup in minutes:
- Navigate to a site that has
laravel/nightwatch
installed. - Add your environment token.
- Click Monitor with Nightwatch.

Enable the Laravel Nightwatch integration

Add your Nightwatch environment token and click 'Monitor with Nightwatch'
Manual Integration
To ensure the agent runs as a continual process on your Forge server, we strongly recommend running the Nightwatch agent as a daemon.
Steps
- Select your server from the server list
- Navigate to Daemons
- Add the
nightwatch:agent
artisan command (see below example)
Example Daemon Configuration
Setting | Value |
---|---|
Command | php8.1 artisan nightwatch:agent (use your PHP version) |
Directory | /home/forge/example.com (your site path) |
Number of Processes | 1 |
Start Seconds | 1 |
Stop Seconds | 10 |

Configure the Nightwatch daemon