@eddy1992 what operating system are you using?
Does running php -v also shows 7.3.11?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to install Laravel latest version. So I am using the following command -:
composer create-project --prefer-dist laravel/laravel public/
The problem is that it keeps on installing Laravel version 5.8.35.
Installing laravel/laravel (v5.8.35)
- Installing laravel/laravel (v5.8.35): Loading from cache
Now my php cli version is PHP 7.3.11 and php info also shows the same but it still installs 5.8.35
So I was trying to fix this issue by running -:
composer create-project laravel/laravel public/ "6.*"
and it gave me the following error -:
[InvalidArgumentException]
Could not find package laravel/laravel with version 6.* in a version installable using your PHP version 7.1.33.
Please assist me in installing the latest Laravel version.
Thank you
Please or to participate in this conversation.