问题一:
Warning: require(D:\ProgramFiles\phpstudy_pro\WWW\laravel10\public/…/vendor/autoload.php): failed to open stream: No such file or directory in D:\ProgramFiles\phpstudy_pro\WWW\laravel10\public\index.php on line 24
问题二:
ThinkPHPv8.0.3使用composer安装后运行报错Fatal error: Uncaught Error: Class "think\App" not found in D:\ProgramFiles\phpstudy_pro\WWW\www.laravel10\public\index.php:18 Stack trace: #0 {main} thrown in D:\ProgramFiles\phpstudy_pro\WWW\www.laravel10\public\index.php on line 18,如下图
解决方法如下:针对上面两个问题,只要执行下面两个命令即可解决该问题
问题一解决:
composer dump-autoload
问题二解决:
composer update
文章评论(0)