laravel/telescope
Laravel Telescope is a debug assistant for Laravel that provides a rich dashboard of requests, exceptions, logs, database queries, queued jobs, mail, notifications, cache activity, scheduled tasks, and more—ideal for local development and troubleshooting.
Laravel Telescope is a first-class debugging tool designed specifically for Laravel applications, making it an excellent architectural fit for any Laravel-based system. Its deep integration with Laravel’s core components (requests, exceptions, queries, jobs, logs, etc.) ensures minimal friction in adoption. The package leverages Laravel’s service provider pattern, middleware, and event listeners to intercept and log application activity without requiring invasive modifications to existing code.
Key architectural strengths:
illuminate.query, illuminate.auth.attempting) to capture telemetry.DB::listen).Telescope\Watchers interface.Integration is highly feasible with low technical debt for Laravel applications. The package provides:
composer require laravel/telescope + middleware registration).telescope_entries table, which can be published and customized.Potential integration challenges:
entries_per_minute).telescope_entries table can grow large. Solutions include:
telescope:prune Artisan command.Telescope\Storage\Storage interface).auth middleware) to access its dashboard, which may need alignment with existing auth systems (e.g., Sanctum, Passport).| Risk Area | Severity | Mitigation |
|---|---|---|
| Database performance | Medium | Configure entries_per_minute and prune regularly. Use indexing on created_at. |
| Asset compilation issues | Low | Ensure Vite/Laravel Mix is properly configured (Telescope v5+ uses Vite by default). |
| Middleware conflicts | Low | Telescope’s middleware runs late in the stack; conflicts are rare but testable. |
| PHP version compatibility | Low | Telescope supports PHP 8.1–8.5 (as of v5.15.1). Verify compatibility with your stack. |
| Third-party watchers | Medium | Custom watchers may require testing for edge cases (e.g., async jobs). |
| Security | Medium | Ensure Telescope routes are protected (e.g., telescope middleware) and not exposed in production. |
Production Usage:
Performance Impact:
Customization Needs:
CI/CD and Testing:
Authentication:
Alternatives:
Telescope is optimized for Laravel ecosystems and integrates seamlessly with:
DB::listen).Non-Laravel Compatibility:
| Step | Action | Dependencies |
|---|---|---|
| 1. Installation | composer require laravel/telescope |
Composer, Laravel ≥9.x |
| 2. Publish Assets | php artisan telescope:install |
Node.js (for Vite), Laravel Mix |
| 3. Configure Auth | Register TelescopeServiceProvider and middleware in app.php. |
Laravel auth system |
| 4. Database Setup | Run php artisan migrate (publishes telescope_entries table). |
Database connection |
| 5. Customization | Configure config/telescope.php (e.g., throttling, ignored routes). |
Application-specific needs |
| 6. Testing | Verify telemetry in /telescope dashboard. |
Test environment |
| 7. Production | Disable in production (or use TELESCOPE_ENABLED=false env var). |
Deployment strategy |
Rollout Strategy:
entries_per_minute=50).| Component | Compatibility | Notes |
|---|---|---|
| Laravel Version | 9.x–13.x (as of v5.20.0) | Tested with latest LTS versions. |
| PHP Version | 8.1–8.5 | PHP 8.0 support dropped in v5.15.1. |
| Database | MySQL, PostgreSQL, SQLite, SQL Server | Uses Eloquent; no raw PDO dependencies. |
| Queue Systems | Database, Redis, SQS, etc. (via Laravel Queues) | Supports Horizon/Reverb telemetry. |
| Frontend Build Tools | Vite (default), Webpack (legacy) | Telescope v5+ uses Vite; older versions use Webpack. |
| Authentication | Laravel’s auth (session, Sanctum, Passport) | Customizable via middleware. |
| Third-Party Packages | Most Laravel packages (e.g., Spatie, Cashier) | May require custom watchers for full telemetry. |
Pre-Integration:
/telescope to developers role).Integration Phase:
Post-Integration:
How can I help you explore Laravel packages today?