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