Laravel作曲家和包发现

时间:2017-11-17 20:16:40

标签: php laravel composer-php artisan

在克隆它并运行作曲家安装后的新项目中,我有:

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  

究竟想要做什么包:发现?

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

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

这是一个完全被阻止的情况。无法继续进一步

1 个答案:

答案 0 :(得分:0)

尝试在终端中运行composer global update以更新您的作曲家。对于未找到的基表,请确保您的表迁移是Schema :: create not Schema :: table。不要忘记使用相同的表名来上下起作用。