Laravel 作曲家和包发现

Laravel composer and package discover

在克隆它和 运行 composer 安装后的新项目中我有:

Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover


[Illuminate\Database\QueryException]                                         
SQLSTATE[42S02]: Base table or view not found: 1146 Table 
'cryptoreview.out  
going_links' doesn't exist (SQL: select * from `outgoing_links`)             



[Doctrine\DBAL\Driver\PDOException]                                          
SQLSTATE[42S02]: Base table or view not found: 1146 Table 
'cryptoreview.out  
going_links' doesn't exist                                                   



[PDOException]                                                               
SQLSTATE[42S02]: Base table or view not found: 1146 Table 
'cryptoreview.out  
going_links' doesn't exist  

到底想做什么package:discover?

我试图修复 运行ning php artisan migrate 但是:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cryptoreview.outgoing_links' doesn't exist (SQL: select * from `outgoing_links`)  

完全阻塞的情况。无法继续

尝试 运行 composer global update 在您的终端中更新您的作曲家。对于未找到基础 table,请确保您的 table 迁移是 Schema::create 而不是 Schema::table。不要忘记table.

同名函数up和down