R
R
Roman Zakharov2017-02-15 09:32:34
Composer
Roman Zakharov, 2017-02-15 09:32:34

How to update a composer project?

Hello.
Created a new project with the command:

composer create-project laravel/laravel:"v5.3.0" myproject

After some manipulations and research, I want to update it using composer:
composer update
Naturally, only the dependencies described in composer.json were updated, but laraver itself was not updated.
Package "laravel/laravel" listed for update is not installed. Ignoring.

What am I doing wrong. Or how do I update the composer project to the latest version?
Forgive me if the question seems lamer to someone. Laravel is just an example here, I'm studying composer.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeeeez, 2017-02-15
@freeeeez

Specify the required version of Laravel in composer.json and run composer update again

S
Stanislav Pochepko, 2017-02-15
@DJZT

To update, changing the version in the composer and updating is not enough.
https://laravel.com/docs/5.4/upgrade
Yes. Project at its core. He's not a vendor. Vendors are package providers. In our case, vendors are developers. <vendor>/<package>
The project is your business logic that you write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question