How to specify Lumen (or Laravel) version on new i

2020-06-09 03:46发布

问题:

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.

回答1:

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.*"


标签: laravel lumen