1、解決class not found的方法:
如果你用的是homestead虛拟機,那麼,你要到虛拟機下執行:
composer dump-autoload
2、解決Base table or view not found: 1051的方法
<code>mysql> drop database homestead;</code>
<code>mysql> create database homestead;</code>
<code>php artisan migrate</code>
總結:當我用1的方法解決了1問題的時候,之後又出現了2的問題,然後再用2的方法解決了!!!
參考:
<a href="http://stackoverflow.com/questions/32417358/laravel-5-1-migration-error" target="_blank">http://stackoverflow.com/questions/32417358/laravel-5-1-migration-error</a>
<a href="https://laravel.com/docs/5.2/migrations#running-migrations" target="_blank">https://laravel.com/docs/5.2/migrations#running-migrations</a>