php工匠望远镜:安装不在laravel中发布资产

Far*_*had 5 php mysql 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 我收到此消息:

nothing to migrate
Run Code Online (Sandbox Code Playgroud)

因此我无法访问望远镜。请指教 。

Udh*_*iya 1

您可以使用 Composer 将 Telescope 安装到您的 Laravel 项目中:

composer require laravel/telescope
Run Code Online (Sandbox Code Playgroud)

安装 Telescope 后,使用 Telescope:install Artisan 命令发布其资源。

php artisan telescope:install
Run Code Online (Sandbox Code Playgroud)

安装 Telescope 后,您还应该运行 migrate 命令:

php artisan migrate
Run Code Online (Sandbox Code Playgroud)