Ifnot
Ifnot

Reputation: 5103

How to specify Lumen (or Laravel) version on new installation?

I want to install a specific version of Laravel Lumen (5.1 instead of the lastest one 5.2) on a new project.

From the documentation :

lumen new blog

or :

composer create-project laravel/lumen --prefer-dist

Does not work : it install the lastest one.

Upvotes: 18

Views: 16577

Answers (1)

Ifnot
Ifnot

Reputation: 5103

Create a project using the composer command :

Create a Laravel 5.1 project into the blog folder :

composer create-project laravel/laravel blog "5.1.*"

Create a Lumen 5.1 project into the blog folder :

composer create-project laravel/lumen blog "5.1.*"

Upvotes: 42

Related Questions