在作曲家laravel上安装依赖(doctrine / dbal) [英] Install dependency (doctrine/dbal) on composer laravel

查看:2965
本文介绍了在作曲家laravel上安装依赖(doctrine / dbal)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我是laravel世界的新人。我试图执行迁移重命名一些列,我有一个异常。



在我阅读的文档,我必须添加doctrine / dbal依赖到我的composer.json文件。我怎么做?这是正确的composer.json文件。我有很多在我的申请。是与文件夹应用程序,引导程序,公共和供应商在同一级别的。



如果是这样,我如何添加该依赖。




$ b

/ h2>

之后,控制台会抛出此错误



解决方案

要添加这个依赖打开composer.json您的项目的根目录(与app,public等级相同),并在require部分添加doctrine / dbal包:

 require:{
laravel / framework:4.1。*,
doctrine / dbal:v2.4.2
},

保存文件并运行 composer update



编辑



您可能已经使用默认设置安装了git,并且不在您的PATH环境中。 p>

打开Git Bash(它是用git安装的,你会在你的程序中找到它),并执行 composer update 。顺便说一下,它更好的Windows命令提示符。


So I am new in the laravel world. I am trying to execute a migration to rename some columns and I got an exception.

As i read on the documentation i have to add the doctrine/dbal dependency to my composer.json file. How do i do that? Which is the correct composer.json file. I have many in my application. Is the one that is on the same level as the folders app,bootstrap, public and vendor.

If so how do I add that dependency. Do i have to download anything?

By the way im using easyphp, not wamp!

Edit 1

After doing that the console throws this error

解决方案

To add this dependency open the composer.json at the root of your project (in the same level as app, public etc.) and in the require section add the doctrine/dbal package like:

"require": {
    "laravel/framework": "4.1.*",
    "doctrine/dbal": "v2.4.2"
},

Save the file and run composer update

Edit

You probably installed git with the default settings and it's not in your PATH env.

Open Git Bash (it was installed with git - you will find it in your programs) and do composer update. By the way it's far better that windows command prompt.

这篇关于在作曲家laravel上安装依赖(doctrine / dbal)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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