Laravel installer keeps installing 5.5 instead of 5.6

我与影子孤独终老i 提交于 2019-11-28 01:57:12

Laravel 5.6 was not officially released until today (2018-02-07).

Now that it has been officially released, the Laravel installer and the composer create-project will use 5.6, instead of 5.5.

If you'd like to install a version that is not the current version, you need to specify the version to install as the last parameter to composer create-project.

For example, now that 5.6 has been released and is the current version, if you wanted to create a 5.5 project, you would add "5.5" to the composer statement:

composer create-project --prefer-dist laravel/laravel blog "5.5.*"

You have to do:

composer create-project laravel/laravel your-project-name-here dev-develop
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!