Laravel项目提交错误

时间:2014-07-28 18:44:49

标签: php git laravel-4

我通过办公室电脑的github提交了一个laravel项目。它在那里工作得很好,但当我试图在我的笔记本电脑上运行相同的项目时,它显示了以下错误。我通过github克隆了这个项目。

Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException 打开:E:\ xampp \ htdocs \ design \ laravel \ vendor \ laravel \ framework \ src \ Illuminate \ Routing \ RouteCollection.php

$others = $this->checkForAlternateVerbs($request);

    if (count($others) > 0)
    {
        return $this->getOtherMethodsRoute($request, $others);
    }

    throw new NotFoundHttpException;
}

3 个答案:

答案 0 :(得分:1)

当您克隆github repo时,Vendor文件夹不会随之出现。记住.gitignore文件

答案 1 :(得分:1)

user3666882关于供应商的文件夹是正确的。

如果要将供应商文件包含到git存储库中,首先运行composer update(它将下载composer.json文件中指定的所有必需软件包)。如果您没有安装composer,check their documentation.

希望它有所帮助。

修改:由于您已对问题进行了编辑,因此您现在收到的错误意味着您没有特定的路线。运行composer dump-autoload并确保您正在访问现有路由,并且它指向现有的控制器方法。

答案 2 :(得分:0)

如果您有任何设置可以引入其他依赖项,请不要忘记同时运行npm installgulp。但上述答案是正确的,您需要运行composer update

相关问题