Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

frankyj's avatar

Removing Laravel Telescope gives error

I've removed Telescope, but I'm keeping the error: In ProviderRepository.php line 208: Class 'App\Providers\TelescopeServiceProvider' not found. Followed this advice https://github.com/laravel/telescope/issues/361. But I'm still having this error, e.g. when I'm running artisan config:cache command. Where could this error come from?

0 likes
4 replies
frankyj's avatar
frankyj
OP
Best Answer
Level 1

Solved. In bootstrap/cache/config.php was still a line 'App\Providers\TelescopeServiceProvider', removed it manually now.

3 likes
jmrashed's avatar

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

Kindly check config/app.php, under providers array, remove the Telescope there In your app/Providers/AppServiceProvider.php is there a TelescopeServiceProvider there? Remove that also. Then finally you can run composer remove laravel/telescope.

Please or to participate in this conversation.