解决 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