我们从网上下载的项目部署到本地,会出现以下两个问题。
Warning: require(D:\ProgramFiles\phpstudy_pro\WWW\LaravelBlog\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\ProgramFiles\phpstudy_pro\WWW\LaravelBlog\public\index.php on line 24
Fatal error: require(): Failed opening required 'D:\ProgramFiles\phpstudy_pro\WWW\LaravelBlog\public/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\ProgramFiles\phpstudy_pro\WWW\LaravelBlog\public\index.php on line 24
解决方法:执行下面两步即可。
1.composer dump-autoload
2.composer update
文章评论(0)