Due to some issues I encountered in my laravel 7 project, I decided to upgrade to the latest version.
So, I updated my composer version and installed php8 (I was previously running php7).
After installing composer, I installed laravel globally using composer global require laravel/installer.
At the end of the installation, the CLI showed me that the system is using laravel 5 installer as shown in the image below:
CLI showing laravel 5 installer
When I proceeded to install latest version of my laravel project using composer create-project laravel/laravel project-name --prefer-dist, it still installs laravel version 5.1
My composer.json is as shown below:
How can I fix this?
I have tried manually installing php8 from the official site. Did not work either.
I am currently using php8 built in xampp.
Composer version 2.6.2
Thank you very much.