Sign in

Installing Laravel Telescope only in development environment

Pull the package via composer:

composer require laravel/telescope --dev

Publish its assets:

php artisan telescope:install

Run database migration:

php artisan migrate

In /config/app.php remove the following line from Application Service Providers array list:


No add the following in your app/Providers/AppServiceProvider.php:

use App\Providers\TelescopeServiceProvider;

And in the register() method:

if ($this->app->isLocal()) {

That’s all and you are good to go!!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store