发布时间:2021-03-28 22:17:01
点击:102次
访问laravel项目时候出现vendor/autoload.php): failed to open stream: No such file or directory
Warning: require(D:\downEmail\laravleone\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\downEmail\laravleone\bootstrap\autoload.php on line 17
Fatal error:
require(): Failed opening required
'D:\downEmail\laravleone\bootstrap/../vendor/autoload.php'
(include_path='.;C:\php\pear') in D:\downEmail\laravleone\bootstrap\autoload.php on line 17
服务器上没有安装项目的依赖
第一步先安装composer,
第二步composer install 安装composer.json里定义的依赖
首先执行 自动加载 //再此运行composer dump-autoload
然后 conposer update
最后出错laravle key不存在的时候
最后设置key
php artisan key:generate 设置key