我有一个laravel 6应用程序,我想安装望远镜,因为我执行了所有的命令,比如composer update和composer dump-autoload,然后我安装了望远镜,一切都很好,当我运行php artisan telescope:install时,我得到了如下信息:
Publishing Telescope Service Provider...
Publishing Telescope Assets...
Publishing Telescope Configuration...
Telescope scaffolding installed successfully.但是它不会生成配置文件和迁移,所以当我运行php artisan migrate时,会收到以下消息:
nothing to迁移
发布于 2020-05-08 17:56:32
由你指挥
php artisan vendor:publish --tag=telescope-migrations然后编辑您的env文件。
TELESCOPE_ENABLED=true在这次跑完之后
php artisan optimize最后
php构件迁移
发布于 2020-04-20 13:35:46
必须首先使用以下命令发布它:
php artisan vendor:publish --tag=telescope-migrations然后,您将获得默认迁移以及config/telescope.php文件。
发布于 2021-04-28 09:39:46
在我的项目中安装telescope并导出默认迁移之后,我得到了这个错误。
λ php artisan vendor:publish --tag=telescope-migrations
Unable to locate publishable resources.
Publishing complete.我如何解决这个问题
如果遇到此问题,请打开telescope.php文件,该文件位于您的config目录中。
然后将此TELESCOPE_ENABLED的值设置为true。
'enabled' => env('TELESCOPE_ENABLED', true),因为在我的例子中,TELESCOPE_ENABLED的值是false
然后再次运行这个命令php artisan vendor:publish --tag=telescope-migrations。我希望它能起作用:)
https://stackoverflow.com/questions/61323683
复制相似问题