通过Composer和Windows 10安装Laravel 5.6版后,显示5.5.32

问题描述:

我尝试安装Laravel项目的最新版本(5.6),但安装后,它不是5.6版本,但它是5.5.32 !!!

I trying to install last version (5.6) of Laravel project but after install that, It was not version 5.6 but it is 5.5.32 !!!

我在Windows 10上安装了composer,并且确实根据 https运行composer global require "laravel/installer"composer create-project --prefer-dist laravel/laravel blog ://laravel.com/docs/5.6/installation

I installed composer on my windows 10 and I did run composer global require "laravel/installer" and composer create-project --prefer-dist laravel/laravel blog according to https://laravel.com/docs/5.6/installation

但是当检查安装的laravel版本时,会显示5.5.32!为什么??

But when checking laravel version installed it show me 5.5.32 !! why??

我使用XAMPP和PHP > 7.1

确保至少使用PHP 7.1.3,并将composer.json文件更新为:

Make sure you are using at least PHP 7.1.3 and update your composer.json file to:

"php": ">=7.1.3",
"laravel/framework": "5.6.*",

然后运行:

作曲家更新

composer update