本文介绍了使用laravel安装程序安装特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
到目前为止,如果我使用此命令
As of now, if I use this command
laravel new blog
它将使用最新版本(如5.2)创建一个laravel项目,但是如果我要安装特定版本,即该怎么办.版本5.1?
It will create a laravel project with the latest version like 5.2, but what if I want to install a specific version, ie. version 5.1?
更新::我正在寻找laravel installer命令,特定版本的安装是否有任何选项/参数?
UPDATE:: I am looking for laravel installer command, is there is any option/parameter for specific version installation?
推荐答案
使用作曲家,您可以通过运行轻松指定所需的版本
Using composer you can specify the version you want easily by running
composer create-project laravel/laravel="5.1.*" myProject
使用5.1.*将确保您在5.1分支中获得所有最新补丁.
Using the 5.1.* will ensure that you get all the latest patches in the 5.1 branch.
这篇关于使用laravel安装程序安装特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!