Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Telescope won't remove

Tags:

laravel

After running composer remove laravel/telescope It still won't remove telescope completely. I've followed the answer here https://github.com/laravel/telescope/issues/361 but to no avail it still doesn't work. Here's the error message

enter image description here

like image 369
Steven Avatar asked Oct 04 '19 03:10

Steven


2 Answers

You must first remove all the telescope reference in your code before running composer remove laravel/telescope.

  1. Kindly check config/app.php, under providers array, remove the Telescope there
  2. In your app/Providers/AppServiceProvider.php is there a TelescopeServiceProvider there? Remove that also.
  3. Remove telescope.php in config folder

Then finally you can run composer remove laravel/telescope.

like image 109
aceraven777 Avatar answered Nov 15 '22 11:11

aceraven777


This is what worked for me:

Inside:

 root->config->telescope.php

in the telescope.php config file:

'enabled' => env('TELESCOPE_ENABLED', 'true'),

I changed the true to false.

like image 39
hackernewbie Avatar answered Nov 15 '22 09:11

hackernewbie