laravel 望远镜没什么可迁移的

Ehs*_*san 1 laravel

我有一个laravel 6的应用程序,我想安装在望远镜中,我做了所有喜欢的命令composer updatecomposer dump-autoload,然后我安装望远镜的每一件事情是要罚款,当我跑php artisan telescope:install我得到以下信息:

Publishing Telescope Service Provider...
Publishing Telescope Assets...
Publishing Telescope Configuration...
Telescope scaffolding installed successfully.
Run Code Online (Sandbox Code Playgroud)

但它不会生成配置文件和迁移,所以当我运行时,php artisan migrate我收到此消息:

没有什么可迁移的

Has*_*ida 5

在你的命令中

 php artisan vendor:publish --tag=telescope-migrations
Run Code Online (Sandbox Code Playgroud)

然后编辑你的 env 文件

TELESCOPE_ENABLED=true
Run Code Online (Sandbox Code Playgroud)

在这次运行之后

php artisan optimize
Run Code Online (Sandbox Code Playgroud)

最后

php工匠迁移