I have two PHP version(php 5.6 & php 7.3) installed in my xampp. I have two folders for these two version.
- php
- php73
php7.3 runs on port 8081 and php 5.6 runs on Port 8080.
I have installed composer for the php 5.6 version.
Now when I try to install latest laravel project using
laravel new project_name
OR
composer create-project --prefer-dist laravel/laravel project_name
it installs the the previous version of php.
How can create a new laravel project with new php version?