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

相关文章:

  • 2021-12-06
  • 2021-09-13
  • 2022-12-23
  • 2022-01-27
  • 2021-11-21
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-12-11
  • 2022-12-23
相关资源
相似解决方案