{"id":2457,"date":"2025-07-15T17:47:52","date_gmt":"2025-07-15T17:47:52","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.in\/?p=2457"},"modified":"2025-07-15T17:57:12","modified_gmt":"2025-07-15T17:57:12","slug":"what-is-laravel-telescope","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2025\/07\/15\/what-is-laravel-telescope\/","title":{"rendered":"What is Laravel Telescope?"},"content":{"rendered":"\n<p><strong>Laravel Telescope<\/strong> is a powerful <strong>debugging assistant<\/strong> for Laravel applications. It provides a <strong>real-time UI dashboard<\/strong> that helps developers monitor and debug various activities in the application.<\/p>\n\n\n\n<p>It tracks:<\/p>\n\n\n\n<ul>\n<li>Requests<\/li>\n\n\n\n<li>Exceptions<\/li>\n\n\n\n<li>Database queries<\/li>\n\n\n\n<li>Scheduled tasks<\/li>\n\n\n\n<li>Queued jobs<\/li>\n\n\n\n<li>Mail<\/li>\n\n\n\n<li>Notifications<\/li>\n\n\n\n<li>Cache operations<\/li>\n\n\n\n<li>Logs<\/li>\n\n\n\n<li>Events<\/li>\n<\/ul>\n\n\n\n<p>Why use Laravel Telescope?<\/p>\n\n\n\n<p>To <strong>monitor performance issues<\/strong><\/p>\n\n\n\n<p>To <strong>track errors and exceptions<\/strong><\/p>\n\n\n\n<p>To <strong>debug queries and jobs<\/strong><\/p>\n\n\n\n<p>It\u2019s especially useful during <strong>development phase<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopyEdit<code>composer require laravel\/telescope --dev\nphp artisan telescope:install\nphp artisan migrate\n<\/code><\/pre>\n\n\n\n<p>Telescope will be available at <code>\/telescope<\/code> route<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Syntax &amp; Usage<\/h3>\n\n\n\n<p><strong>Tracking a query:<\/strong><\/p>\n\n\n\n<p>Telescope automatically logs this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phpCopyEdit<code>User::where('email', 'test@example.com')-&gt;first();\n<\/code><\/pre>\n\n\n\n<p><strong>Tracking an Exception:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phpCopyEdit<code>throw new \\Exception(\"Custom error\");\n<\/code><\/pre>\n\n\n\n<p>These will appear in the Telescope dashboard without additional setup.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Real-World Use Case<\/h3>\n\n\n\n<p>Imagine your application is slow, and you&#8217;re not sure why. Using Laravel Telescope, you can:<\/p>\n\n\n\n<ul>\n<li>See slow queries and optimize them<\/li>\n\n\n\n<li>View all HTTP requests<\/li>\n\n\n\n<li>Check what events or jobs were triggered<\/li>\n\n\n\n<li>View failed jobs or exceptions<\/li>\n<\/ul>\n\n\n\n<p>It helps you trace <strong>exactly what&#8217;s happening<\/strong> in your app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Hindi Explanation (For Interviews)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Laravel Telescope \u0915\u094d\u092f\u093e \u0939\u0948?<\/h3>\n\n\n\n<p><strong>Laravel Telescope<\/strong> \u090f\u0915 \u0921\u0947\u0935\u0947\u0932\u092a\u0930 \u091f\u0942\u0932 \u0939\u0948 \u091c\u094b \u0906\u092a\u0915\u0947 Laravel \u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0936\u0928 \u0915\u094b <strong>debug<\/strong> \u0914\u0930 <strong>monitor<\/strong> \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u092e\u0926\u0926 \u0915\u0930\u0924\u093e \u0939\u0948\u0964 \u092f\u0939 \u090f\u0915 <strong>UI \u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921<\/strong> \u0926\u0947\u0924\u093e \u0939\u0948 \u091c\u093f\u0938\u092e\u0947\u0902 \u0906\u092a \u0930\u093f\u092f\u0932 \u091f\u093e\u0907\u092e \u092e\u0947\u0902 \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:<\/p>\n\n\n\n<ul>\n<li>HTTP Requests<\/li>\n\n\n\n<li>Errors \/ Exceptions<\/li>\n\n\n\n<li>Database Queries<\/li>\n\n\n\n<li>Background Jobs<\/li>\n\n\n\n<li>Mail \u0914\u0930 Notifications<\/li>\n\n\n\n<li>Caching<\/li>\n\n\n\n<li>Events<\/li>\n\n\n\n<li>\u0932\u0949\u0917\u094d\u0938<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 \u0915\u094d\u092f\u094b\u0902 \u0907\u0938\u094d\u0924\u0947\u092e\u093e\u0932 \u0915\u0930\u0947\u0902?<\/h3>\n\n\n\n<ul>\n<li>\u0921\u0947\u0935\u0932\u092a\u092e\u0947\u0902\u091f \u0915\u0947 \u0938\u092e\u092f \u0910\u092a \u0915\u0947 \u0905\u0902\u0926\u0930 \u0915\u094d\u092f\u093e \u0939\u094b \u0930\u0939\u093e \u0939\u0948, \u092f\u0939 \u091c\u093e\u0928\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li>\n\n\n\n<li>\u090f\u0930\u0930 \u0915\u094b \u091c\u0932\u094d\u0926\u0940 \u091f\u094d\u0930\u0948\u0915 \u0914\u0930 \u092b\u093f\u0915\u094d\u0938 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li>\n\n\n\n<li>\u0938\u094d\u0932\u094b \u0915\u094d\u0935\u0947\u0930\u0940\u091c \u0914\u0930 \u092a\u0930\u092b\u0949\u0930\u094d\u092e\u0947\u0902\u0938 \u0907\u0936\u094d\u092f\u0942 \u0915\u094b \u092a\u0939\u091a\u093e\u0928\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Installation<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopyEdit<code>composer require laravel\/telescope --dev\nphp artisan telescope:install\nphp artisan migrate\n<\/code><\/pre>\n\n\n\n<p>\u0905\u092c <code>\/telescope<\/code> \u092a\u0930 \u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921 \u090f\u0915\u094d\u0938\u0947\u0938 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Syntax \/ \u0909\u0926\u093e\u0939\u0930\u0923<\/h3>\n\n\n\n<p><strong>\u0915\u094d\u0935\u0947\u0930\u0940 \u0915\u094b \u091f\u094d\u0930\u0948\u0915 \u0915\u0930\u0928\u093e:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phpCopyEdit<code>$users = User::all();\n<\/code><\/pre>\n\n\n\n<p><strong>\u090f\u0930\u0930 \u0915\u094b \u091f\u094d\u0930\u0948\u0915 \u0915\u0930\u0928\u093e:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phpCopyEdit<code>throw new \\Exception(\"Something went wrong\");\n<\/code><\/pre>\n\n\n\n<p>Telescope \u092f\u0939 \u0938\u092c \u0905\u092a\u0928\u0947 \u0906\u092a \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930 \u0932\u0947\u0924\u093e \u0939\u0948\u0964<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Real-World Example (Interview Style)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>\u092e\u093e\u0928 \u0932\u0940\u091c\u093f\u090f \u0906\u092a\u0915\u0947 Laravel \u0910\u092a \u092e\u0947\u0902 \u0915\u0941\u091b \u0938\u094d\u0932\u094b \u0939\u094b \u0930\u0939\u093e \u0939\u0948\u0964<br>Laravel Telescope \u0938\u0947 \u0906\u092a <code>\/telescope<\/code> \u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921 \u092a\u0930 \u091c\u093e\u0915\u0930 \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:<\/p>\n\n\n\n<ul>\n<li>\u0915\u094c\u0928 \u0938\u0940 \u0915\u094d\u0935\u0947\u0930\u0940 \u091c\u094d\u092f\u093e\u0926\u093e \u091f\u093e\u0907\u092e \u0932\u0947 \u0930\u0939\u0940 \u0939\u0948?<\/li>\n\n\n\n<li>\u0915\u094c\u0928 \u0938\u0940 API \u0915\u094b \u091c\u094d\u092f\u093e\u0926\u093e \u092c\u093e\u0930 \u0939\u093f\u091f \u0915\u093f\u092f\u093e \u091c\u093e \u0930\u0939\u093e \u0939\u0948?<\/li>\n\n\n\n<li>\u0915\u094b\u0908 error \u092f\u093e exception \u0906\u092f\u093e \u0915\u094d\u092f\u093e?<\/li>\n<\/ul>\n\n\n\n<p>\u0907\u0938\u0938\u0947 \u0906\u092a\u0915\u094b root problem \u0924\u0941\u0930\u0902\u0924 \u092e\u093f\u0932 \u0938\u0915\u0924\u0940 \u0939\u0948\u0964<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Interview Tips<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Q: What is Laravel Telescope?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>Laravel Telescope is a debug assistant for Laravel. It provides a UI dashboard where developers can monitor HTTP requests, database queries, exceptions, logs, queued jobs, and more.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Q: How do you install Telescope?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopyEdit<code>composer require laravel\/telescope --dev\nphp artisan telescope:install\nphp artisan migrate\n<\/code><\/pre>\n\n\n\n<p>Then visit: <code>\/telescope<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q: Can you name 3 things Laravel Telescope can monitor?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong><\/p>\n\n\n\n<ol>\n<li>Database queries<\/li>\n\n\n\n<li>Exceptions and errors<\/li>\n\n\n\n<li>Jobs and queue processing<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Laravel Telescope is a powerful debugging assistant for Laravel applications. It provides a real-time UI&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2457"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=2457"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2457\/revisions"}],"predecessor-version":[{"id":2458,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2457\/revisions\/2458"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=2457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=2457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=2457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}