Installing specific laravel 5 version with composer create-project

前端 未结 3 921
情深已故
情深已故 2021-02-06 08:09

Today I try to install specific laravel version with composer create-project laravel/laravel=5.1.8 your-project-name --prefer-dist, because some of the plugins have

3条回答
  •  时光取名叫无心
    2021-02-06 08:48

    Use the following command:

    composer create-project laravel/laravel my_project 5.1.8
    

    You can also specify a version and up, for example 5.1 and its patches, like so (recommended):

    composer create-project laravel/laravel my_project 5.1.*
    

提交回复
热议问题