Laravel - 工匠不工作 [英] Laravel - Artisan not working

查看:113
本文介绍了Laravel - 工匠不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道其他问题那里,但它们不同我的情况。



我安装了自己的laravel的新副本,并尝试运行 php artisan list ,现在,我有一位同事安装了一个laravel自己的副本,并将他的整个目录推送到一个git存储库中。我将整个分支从存储库中取出,并尝试运行 php artisan list ,但这次没有任何反应。我的意思是,从字面上看,什么也没有发生。



任何想法为什么会发生这种情况? 一般来说,供应商目录不会提交给VCS,因此,在标准Laravel应用程序上执行克隆操作时将不包括其所有依赖项。



完成克隆后,请执行 composer install (或 composer update 如果你想将最新的软件包作为开发者)将获取依赖并允许你的应用程序工作。


I'm aware of the other questions out there, but they are different to my situation.

I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.

Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.

Any ideas as to why this is happening?

解决方案

Generally speaking, the vendor directory is not committed to VCS, as such, doing a clone on a standard Laravel app won't include all its dependencies.

Once you have cloned, doing composer install (or composer update if you want the latest packages as a developer) will fetch the dependencies and allow your app to work.

这篇关于Laravel - 工匠不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆