Problem
I am a man of the Laravel world. I tried to perform a migration to rename some columns, and I had an exception.
When I read the laravel5.1 document, tell me that I have to add doctrine/dbal dependencies to my Composer.json file. What do I do? This is the correct Composer.json file. I have a lot of applications in my. is with the folder application, bootstrapper, public and vendor at the same level. If so, how do I add that dependency
The console will then throw this error
Solution Solutions
To add this dependency open Composer.json your project's root directory (same as the app,public level) and add the Doctrine/dbal package in the Require section:
"Require": {
"Laravel/framework": "4.1." *”,
"Doctrine/dbal": "v2.4.2"
},
Save the file and run the composer update
You may have installed git with the default settings and are not in your PATH environment.
Open git Bash (it's installed in Git, you'll find it in your program), and execute composer update. By the way, it's a better command prompt than a Windows DOS command.
This article from "Mountain" blog, declined reprint!
laravel5.1 on Install dependency (Doctrine/dbal)