php - Laravel composer and package discover

872

In a new project after cloned it and run composer install I have:

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  

what exactly is trying to do package:discover?

I tried to fix running php artisan migrate but:

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

It is a complete blocked situation. No way to proceed further

802

Answer

Solution:

Try runningcomposer global update in your terminal to update your composer. And for base table not found, make sure your table migration is Schema::create not Schema::table. Don't forget function up and down with the same name of table.

People are also looking for solutions to the problem: php - yii2 login user manually with getting user and password from ajax

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.