簡體   English   中英

Laravel作曲家和軟件包發現

[英]Laravel composer and package discover

在克隆並運行composer install之后的新項目中,我有:

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?

我試圖修復正在運行的php artisan migration,但是:

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

這是一個完全被阻止的情況。 無法繼續進行

嘗試在終端中運行composer global update以更新composer。 對於未找到的基表,請確保您的表遷移是Schema :: create而不是Schema :: table。 不要忘記具有相同名稱的表的上下函數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM