Laravel/framework v5.8.12 requires PHP ^7.1.3 -> your PHP version (5.6.40) does not satisfy that requirement.
But my PHP version in wamp is 7.2.18
Laravel/framework v5.8.12 requires PHP ^7.1.3 -> your PHP version (5.6.40) does not satisfy that requirement.
But my PHP version in wamp is 7.2.18
Seems you are using windows so from your terminal check your PHP version it should be 5.8.12
As you are using windows pc please following instructions --
Right-click on My Computer and select properties or access following the path.
Control Panel\System and Security\System
In that window on the left side, you will see
Advanced system settings
Clicking on Advanced system settings
will open a new window called System Properties
.
In that new window, you will see Environment Variable
click there, then another new window will open.
In that Environment Variables window, you will see two sections one
is User variables for User(user pc name)
and System variables
Under the System variables
section look for Path. Check below image
php -v
you will see your desired
version. Now you can update your Laravel version.NT: You can see in my PC I'm using multiple version of PHP but when I type
php -v
in my terminal it shows 7.2.10. That because of my 7.2.10 having an upper position than 5.6 and you can change that. If you are having some kind of information you can try these steps