0

Latest stable version of Laravel is 5.0.15 but when I run

composer install laravel/laravel :

It says:

Installing laravel/laravel (v5.0.1)
  - Installing laravel/laravel (v5.0.1)
    Downloading: 100%

I've run composer clear-cache but same version is downloaded.

How can I force composer to install latest stable version.

Contents of composer.json:

"require": {
    "laravel/framework": "5.0.*"
},

https://gist.github.com/anonymous/1ca3d46d702541965dfc

Positivity
  • 5,406
  • 6
  • 41
  • 61

3 Answers3

2

It's because there is a laravel/laravel which is the main package and another package laravel/framework which is one of the dependencies of the main package.

the latest laravel/laravel is 5.0.1 and the latest laravel/framework is 5.0.15.

So while installing packages if it says:

  - Installing laravel/framework (v5.0.16)

It means that you'r getting the latest version.

Positivity
  • 5,406
  • 6
  • 41
  • 61
  • 1
    So you use other peoples comments to answer your own question. o well! – tlenss Mar 13 '15 at 15:24
  • @tlenss Haha, no, before you posting your comment (My bad..) I was checking https://packagist.org/packages/laravel/framework and found it out! Kind of http://en.wikipedia.org/wiki/Multiple_discovery !! – Positivity Mar 13 '15 at 15:28
1
composer install laravel/framework
tlenss
  • 2,609
  • 2
  • 22
  • 26
  • Good job. But let my answer go up for someone who needs more details! – Positivity Mar 13 '15 at 15:34
  • 1
    @tlenss would `composer update laravel/framework` be more smarter to use, because then you would automatically use composer.json? See related question: http://stackoverflow.com/questions/16739998/symfony2-how-to-update-a-single-library-with-composer-phar – Mr. Radical Mar 13 '15 at 16:09
  • You are absolutely correct about that. I was just correcting the OP's command. – tlenss Mar 13 '15 at 16:12
1

I would use composer update laravel/framework, because then you would automatically use the requirements in your composer.json file.

That is if you already installed a laravel/framework package.

See, How to update a single library with Composer?

Community
  • 1
  • 1
Mr. Radical
  • 1,847
  • 1
  • 19
  • 29