I am trying to use the Telescope package from Laravels official documentation and I followed the first 2 steps:
composer require laravel/telescope
and
php artisan telescope:install
Everything went fine in my command line untill the install. I got the error:
ErrorException : file_get_contents(path\app\Providers/TelescopeServiceProvider.php: failed to open stream: No such file or directory at: vendor\laravel\telescope\src\Console\InstallCommand.php
So, of course, I googled the issue and found this and I checked to see if my provider's folder exists. It does and indeed the TelescopeServiceProvider.php
is not there. I tried to run the command php artisan telescope:install
again and it provided me the message:
Telescope scaffolding installed successfully.
which I thought was strange but ok, I went to the next step of the documentation:
- After installing the Telescope, you should also run the
migrate
command:php artisan migrate
So I ran that command and I got the message:
Nothing to migrate.
So obviously this didn't go right. I checked after the "fake" installed successfully message if the TelescopeServiceProvider exists now but it still didn't.
What did I do wrong and how do I fix this issue?
TelescopeServiceProvider
class in your app/Providers folder... Remove the package, run acomposer update
and run the process again (require -> install)... If after thephp artisan telescope:install
you don't see the provider class, the assets inside public folder and the config file than there's a problem with filesystem permission IMHO – Womanhatertelescope:install
. – Bawl