Kritim Yantra
Apr 22, 2025
If you're a Laravel developer looking for a powerful tool to debug and monitor your applications, Laravel Telescope is your best friend. Telescope provides real-time insights into requests, database queries, jobs, exceptions, and much more—all in an elegant dashboard.
In this blog, we’ll explore:
✔ What Laravel 12 Telescope is and why it’s useful
✔ How to install and configure Telescope
✔ Key features and how to use them
✔ Best practices for local and production use
Laravel Telescope is an open-source debugging assistant designed specifically for Laravel applications. It gives developers a real-time view of:
Telescope is perfect for local development, but with proper configuration, it can also be used in production for debugging issues .
Installing Telescope is simple. Follow these steps:
Run this command in your Laravel 12 project:
composer require laravel/telescope
For local-only development, add --dev
flag:
composer require laravel/telescope --dev
php artisan telescope:install
php artisan migrate
This creates the necessary database tables for storing Telescope logs.
Visit /telescope
in your browser. You’ll see a detailed dashboard with all monitored activities.
dump()
)dump()
outputs appear in Telescope’s Dumps tab .By default, Telescope is only accessible in local
environments. To allow access in production, modify TelescopeServiceProvider.php
:
protected function gate() {
Gate::define('viewTelescope', function ($user) {
return in_array($user->email, ['admin@example.com']); // Only allow specific users
});
}
Tip: Use environment variables instead of hardcoding emails .
Telescope logs can grow quickly. Automatically prune old logs:
// In app/Console/Kernel.php
Schedule::command('telescope:prune --hours=48')->daily(); // Keeps 48 hours of logs
In config/telescope.php
, disable watchers you don’t need (e.g., cache, Redis) to reduce overhead .
✅ Use in Local Development – Perfect for debugging without affecting performance.
✅ Secure in Production – Restrict access via gate()
and prune logs regularly.
✅ Monitor Performance – Disable heavy watchers (e.g., queries, events) if not needed.
✅ Combine with Laravel Logs – Telescope complements storage/logs/
for deeper debugging .
Laravel Telescope is a must-have tool for:
✔ Faster debugging (queries, exceptions, jobs).
✔ Optimizing performance (slow queries, bottlenecks).
✔ Monitoring app behavior (requests, mails, tasks).
Whether you're a beginner or an expert, Telescope simplifies debugging and makes development smoother.
Ready to try it? Install Telescope today and take control of your Laravel app’s debugging! 🚀
Transform from beginner to Laravel expert with our personalized Coaching Class starting June 20, 2025. Limited enrollment ensures focused attention.
1-hour personalized coaching
Build portfolio applications
Industry-standard techniques
Interview prep & job guidance
Complete your application to secure your spot
Thank you for your interest in our Laravel mentorship program. We'll contact you within 24 hours with next steps.
No comments yet. Be the first to comment!
Please log in to post a comment:
Sign in with Google