0

My source project contains laravel/lumen 5.8 and I cloned the project recently and installed composer and when I try to install lumen in this way

composer global require "laravel/lumen-installer" 

I got the latest one . How can I get Laravel/lumen 5.8 using composer or any other methods?

soldier
  • 101
  • 1
  • 10
  • Check on this source. Hope it help you out! https://stackoverflow.com/questions/36174497/how-to-specify-lumen-or-laravel-version-on-new-installation/36174498 – Sok Chanty Nov 06 '19 at 07:44
  • so what does this command says `composer global require "laravel/lumen-installer" ` – soldier Nov 06 '19 at 07:49

2 Answers2

6

You can create project as

composer create-project --prefer-dist laravel/lumen=5.8 myproject
Saleem
  • 1,059
  • 14
  • 27
0

Go to your app and then find composer.json and add this line:

"laravel/lumen-framework": "5.8.*"

then run

composer update
Sok Chanty
  • 1,678
  • 2
  • 12
  • 22