Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KotoMyh's avatar

Laravel Installation

Hi Everyone, I'm a beginner on laravel I've tried to install laravel 8 into my computer. And I don't know why but my computer is trying to install the version 6 instead of the version 8. I've used laragon, and when I create a project. My computer is installing automatically the version 6. I switched to xampp, but the same thing happened again (always the version 6 instead of 8) Hope someone can help me with this!!!.....Thank you in advance

0 likes
12 replies
Sinnbeck's avatar

How are you installing it? What command?

1 like
KotoMyh's avatar

here is the command : composer create-project --prefer-dist laravel/laravel MyProject

Sinnbeck's avatar

@KotoMyh Try this. It will specify the version you want

composer create-project --prefer-dist laravel/laravel MyProject "^8.0"
1 like
KotoMyh's avatar

@Sinnbeck alright....I'll try it then I wil share you the result!! Thanks you!!!!

wingly's avatar

Check the php version installed and see if it meets the minimum required version of Laravel 8

1 like
KotoMyh's avatar

@wingly php version 7.2....look likes laravel 8 requires 7.3 or more;.. I'll try to upgrade my php version and I'll try it again Thank you!!

KotoMyh's avatar

@wingly It's working now....I've upgraded my php to the 8 version Thank you for your advices

wingly's avatar

@KotoMyh glad that helped. Please mark the answer as the best so the thread is considered solved.

johnDoe220's avatar

first run this code and see php version in cmd

php -v

and install php 8,this link

https://www.apachefriends.org/xampp-files/8.1.2/xampp-windows-x64-8.1.2-0-VS16-installer.exe

and run this command

composer self-update

Please or to participate in this conversation.