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

cmd

推荐答案

要添加此依赖项,请打开composer.json位于项目的根目录下(与app、public等处于同一级别),并在require部分添加doctrine/dbal包,如:

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

保存文件并运行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相关问答推荐

有没有办法使用laravel EXCEL读取和修改EXCEL文件?

Laravel:BelongstoMany 关系实现

使用 laravel 根据当月显示注册用户列表

不能在 laravel 中使用控制器名称,必须使用命名空间

Laravel Valet 安装后 Ping test.dev 返回未知主机

Laravel 5.4 - 如何为同一个自定义验证规则使用多个错误消息

Laravel 5.4 中的自定义助手类

验证规则 required_if 与其他条件(Laravel 5.4)

在 laravel 的集合中找到?例子

在 laravel 查询构建器中使用多个 where 子句

Laravel - 如何恢复本地存储符号链接并刷新

为什么我的 Laravel 队列作业(job)在 60 秒后失败?

使用 vue-router 更改路由时中止所有 Axios 请求

Laravel 5 - Php artisan语法错误

如何在 Laravel 5.1 中改变环境?

验证匹配字符串

Laravel Socialite 在本地主机上进行测试,SSL 证书问题?

如何清理 Laravel Bootstrap 缓存配置文件?

Laravel 4:分析器在哪里?

找不到 HOME 环境 -- 扩展 `~'