解決 Class not found和Base table or view not found: 1051 問題


1、解決class not found的方法:

如果你用的是homestead虛擬機,那么,你要到虛擬機下執行:

composer dump-autoload

2、解決Base table or view not found: 1051的方法

mysql> drop database homestead;

mysql> create database homestead;

php artisan migrate

 

總結:當我用1的方法解決了1問題的時候,之后又出現了2的問題,然后再用2的方法解決了!!!

參考:

http://stackoverflow.com/questions/32417358/laravel-5-1-migration-error

https://laravel.com/docs/5.2/migrations#running-migrations


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM