尝试发布 laravel-livewire 的配置文件时出错?

Error trying to publish config file of laravel-livewire?

正在阅读 laravel-livewire 文档,网址为 https://laravel-livewire.com/docs/2.x/installation

我尝试发布配置文件,但得到了意想不到的结果

$ php artisan livewire:publish

                                              
  Command "livewire:publish" is not defined.  
                                              
  Did you mean one of these?                  
      livewire:configure-s3-upload-cleanup    
      livewire:copy                           
      livewire:delete                         
      livewire:discover                       
      livewire:make                           
      livewire:move                           
      livewire:stubs                          
      stub:publish                            
      sweetalert:publish                      
      vendor:publish                          

                                          

为什么会这样,我使用了哪个命令来发布配置文件?

我有:

"laravel/framework": "^7.0",
"livewire/livewire": "^1.3",

谢谢!

您已经安装

"livewire/livewire": "^1.3",

并且指的是版本 2 文档 https://laravel-livewire.com/docs/2.x/installation

改用 liverwire 版本 2 或 version 1 documentation

如果其他人想知道,可以在项目根目录的 composer.json 文件的 require 部分找到行 "livewire/livewire": "^1.3"