laravel5.1 on Install dependency (Doctrine/dbal)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.