Reputation: 551
I am installing external dependencies using composer update
command. The following is the section of the composer.json
file in c:\xampp\htdocs\myproject\vendor\laravel\framework\
directory.
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*"
"illuminate/html": "5.0.*@dev"
},
I am getting the following results after running the composer update command:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
I have also tried to create another require array in the composer.json and added the packages I want to install with no success.
The composer update
command could not install any unstalled dependency using the composer update
command. Even composer self-update
did not solve the problem.
Kindly assist me, I have been stuck here for some days now trying all I would do but without success.
I am changing the composer.json under the following directory: c:\xampp\htdocs\myproject\vendor\laravel\framework\ Is this ok?
Upvotes: 0
Views: 5214
Reputation: 159
You missed column after "matriphe/imageupload": "5.1.*"
, try to change it:
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*",
"illuminate/html": "5.0.*@dev"
}
Upvotes: 1
Reputation: 57743
Don't change any files inside the vendor
directory, they are managed by Composer. To install further packages use the composer.json
in your project's directory.
And use composer install
to install new packages as composer update
will update already installed packages to newer versions (if available) too.
composer self-update
just updates Composer itself.
Upvotes: 3