Monitor Every Request in your application with Laravel Telescope.

Raiyan Memon
2 min readJan 14, 2025

--

Telescope provides insight into your application- requests, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and more.

It is very necessary for your Laravel application as it provides and lists every incoming request via API with the incoming parameters and response.

Follow the along to integrate the Laravel telescope into your application.

Step 1: Install the below package for telescope installation.

composer require laravel/telescope

After installing this package run the below command to publish the assets and migrations and migrate them.

php artisan telescope:install

php artisan migrate

Step 2: Accessing the telescope page

To access the route of the telescope go to your domain and hit “/telescope”.

http://127.0.0.1:8000/telescope

Step 3: Enable or Disable the “/telescope” route

For Disabling the telescope once in production add the below line in your “.env” file

TELESCOPE_ENABLED=false

By default the above line is true in “config/telescope.php” To disable it set it to “false” and to again enable it set it to “true”.

Step 4: Enable night mode in the telescope

Go to your “app/Providers/TelescopeServiceProvider” Find the line :

Telescope::night();

Uncomment the above line and just refresh “/telescope” and you will be entering a night mode.

Finally, we have integrated the Laravel telescope in our application, just spend some time understanding its flow and you will never regret learning it.

There is more to it just visit the Laravel official documentation to find out more

Have recommendations or thoughts? Feel free to share them in the comments!

Want to know more about me or get in touch? Visit my website.

Keep coding and exploring ❤️

--

--

Raiyan Memon
Raiyan Memon

Written by Raiyan Memon

Software Engineer & Full Stack Web Developer working with Laravel and Nextjs

No responses yet