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>