简体   繁体   中英

php artisan telescope:install not publishing the assets in laravel

i have a laravel 6 app that i want to install the telescope in that i did all the commands like composer update and composer dump-autoload and then i install the telescope every thing is going fine and when i run php artisan telescope:install i get the message below:

Publishing Telescope Service Provider...
Publishing Telescope Assets...
Publishing Telescope Configuration...
Telescope scaffolding installed successfully.

but it wont generate the config file and migration so when i run php artisan migrate i get this message:

nothing to migrate

thus i cant access the telescope. please advice.

For me, the installation was incomplete, so I comment the API provider and cleared the cache. And re-installed.

As given in the article: https://panjeh.medium.com/new-installation-of-laravel-telescope-fails-418afa2b8972

"was this new line in the config/app.php file: App\Providers\TelescopeServiceProvider::class, That causes the error and it seems the installation was not complete and only that line was added. So I commented that line in the config/app.php file"

You may use Composer to install Telescope into your Laravel project:

composer require laravel/telescope

After installing Telescope, publish its assets using the telescope:install Artisan command.

php artisan telescope:install

After installing Telescope, you should also run the migrate command:

php artisan migrate

This works for me: composer require laravel/telescope --dev Full guide to install and set up Laravel Telescope https://medium.com/@Zerquix18/full-guide-to-install-and-set-up-laravel-telescope-daf558f734f2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM