2

I removed a composer package, with composer remove laravel/telescope But getting to the end of the command output I got

In ProviderRepository.php line 208:

  Class 'App\Providers\TelescopeServiceProvider' not found

I deleted the vendor folder, check to make sure the package is not in the composer.json file, reinstalled the vendor packages and I got the same error at the end of the command output

Shizzen83
  • 3,325
  • 3
  • 12
  • 32
Ehsan
  • 41
  • 1
  • 6

1 Answers1

0

Delete manually all the files in your bootstrap/cache directory and you should be fine

Shizzen83
  • 3,325
  • 3
  • 12
  • 32
  • does not work bootstrap\cache directory must b e present and writable. – Ehsan Apr 20 '20 at 17:51
  • In ProviderRepository.php line 208: Class 'App\Providers\TelescopeServiceProvider' not found – Ehsan Apr 20 '20 at 17:52
  • Yes, that's why I said to remove every file, not the directory – Shizzen83 Apr 20 '20 at 17:53
  • its worked for that issue https://stackoverflow.com/questions/58098157/laravel-telescope-failed-to-open-stream-no-such-file-or-directory-telescopeserv?rq=1 – Ehsan Apr 20 '20 at 18:18