What is Laravel Telescope
Laravel Telescope is the official debugging tool that visualizes the internal state of your Laravel application. It records detailed information about requests, exceptions, queries, jobs, logs, mail, notifications, cache operations, and scheduled runs. It’s a debugging tool intended for local development environments only. For monitoring in production, use Laravel Pulse or Laravel Nightwatch.The layers being monitored
Installation
1
Install Telescope
2
Publish the assets and migrations
3
Run the migrations
/telescope.
Local-only installation (recommended)
If your primary goal is debugging during local development, we recommend installing with
--dev and manually registering the service provider only in the local environment.telescope:install, remove the TelescopeServiceProvider registration from bootstrap/providers.php.
Then register it manually in the register method of App\Providers\AppServiceProvider.
composer.json.
Available watchers
Watchers collect telemetry when requests or commands run. Manage their enablement and configuration inconfig/telescope.php.
Request Watcher
Request Watcher
Records requests, headers, session, and responses.
You can limit the recorded response size with
You can limit the recorded response size with
size_limit.Query Watcher (particularly important)
Query Watcher (particularly important)
Records SQL, bindings, and execution time.
By default, queries exceeding 100ms are tagged with
By default, queries exceeding 100ms are tagged with
slow, making it very effective for detecting performance bottlenecks.Job Watcher
Job Watcher
Records queue job dispatches and their execution results.
Exception Watcher
Exception Watcher
Records reportable exceptions and their stack traces.
Log Watcher
Log Watcher
Records application logs.
The default level is
The default level is
error and above, and it can be lowered to debug in the configuration.Command Watcher
Command Watcher
Records Artisan command arguments, options, output, and exit codes.
Event Watcher
Event Watcher
Records the payloads and listener information of dispatched events (internal Laravel events are excluded).
Cache Watcher
Cache Watcher
Records cache hits, misses, updates, and deletions.
Redis Watcher
Redis Watcher
Records Redis commands executed from the application.
Model Watcher
Model Watcher
Records Eloquent model events, and can also collect hydration counts if needed.
Notification Watcher
Notification Watcher
Records sent notifications.
Mail Watcher
Mail Watcher
Preview sent emails in the browser and download them as
.eml.HTTP Client Watcher
HTTP Client Watcher
Records outbound HTTP client requests.
Gate Watcher
Gate Watcher
Records the results of Gate / Policy authorization checks.
Schedule Watcher
Schedule Watcher
Records scheduled commands and their output.
View Watcher
View Watcher
Records the name, path, data, and composers of rendered views.
Batch Watcher
Batch Watcher
Records queue batch information (jobs and connection information).
Dump Watcher
Dump Watcher
Records
dump output while Telescope’s Dump tab is open.Summary
Next steps
Laravel Pulse
Install a performance aggregation dashboard for production environments.
Laravel Nightwatch
Use Nightwatch for real-time monitoring of production environments.