php artisan serve报错问题

运行php artisan serve启动时,报出如下错误,大婶知道这是什么原因吗?

F:\m3>php artisan serve

Warning: require(F:\m3\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in F:\m3\bootstrap\autoload.php on line 17

Call Stack:

0.0000     123344   1. {main}() F:\m3\artisan:0
0.0000     125120   2. require('F:\m3\bootstrap\autoload.php') F:\m3\artisan:16

Fatal error: require(): Failed opening required 'F:\m3\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in F:\m3\bootstrap\autoload.php on line 17

Call Stack:

0.0000     123344   1. {main}() F:\m3\artisan:0
0.0000     125120   2. require('F:\m3\bootstrap\autoload.php') F:\m3\artisan:16

F:\m3>

leec

不好意思,描述中出现了错别字,“大婶知道这是什么原因吗”改为“大神知道这是什么原因吗”,手滑打错…

JellyBool

你的项目下的 bootstrap/autoload.php这个文件呢,你看看bootstrap这个文件夹里面有没有,或者给我看看你的这个文件夹里面有啥?文件的内容大概是这样的:

<?php

define('LARAVEL_START', microtime(true));

require __DIR__.'/../vendor/autoload.php';

$compiledPath = __DIR__.'/cache/compiled.php';

if (file_exists($compiledPath)) {
    require $compiledPath;
}


weiyongsheng

是不是没有composer install 啊?

leec

@JellyBool 有的,文件里面内容也一模一样,我再琢磨琢磨

leec

@JellyBool 再请教下你,我在看你laravel5.2特性讲解那视频,我完全按照你的操作来操作,但是到重置密码发邮件那一步,会报这个错误,这是什么原因呢?
FatalErrorException in ClassLoader.php line 314:
Maximum function nesting level of ‘100’ reached, aborting!

leec

@JellyBool 应该是死循环了,但是我不懂为什么这里会有死循环

JellyBool

这个基本上是你的哪个地方写错了,或者你却配置一下你的xdebug:

sudo vim /etc/php5/mods-available/xdebug.ini //这里是你相对应的xdebug的配置
// 在文件的后面加上
xdebug.max_nesting_level=500