I'm trying to install laravel 6 running the command:
composer create-project --prefer-dist laravel/laravel {appName}
But this command returns to me 5.8.* version:
Installing laravel/laravel (v5.8.35)
- Installing laravel/laravel (v5.8.35): Loading from cache ...
I'm using Wampserver 3.2. I've selected the 7.4.0 version, and I've tried to change CLI also (right click on tray icon > tools > php CLI version).
When I access the phpinfo.php
on localhost, gives me the right version (7.4.0), but typing the command php -v
, returns to me:
PHP 7.1.9 (cli) (built: Aug 30 2017 18:34:46) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
I'm posting this information, but I don't know if it really has anything to do with downloading version 5.8. *. Any sugestion?
I think before use composer create-project...
you use composer global require laravel/installer. so my opinion is that use again composer global require laravel/installer
.
Please update with command
composer update
compose upgrade
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.