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

kuyawing's avatar

Laravel Herd won't install Laravel 11

Hi, I just installed Laravel Herd. By default, the PHP being installed 8.3. I don't understand why it keeps installing Laravel 10.

I had problem before installing Laravel 11 in xampp because the php version that was installed was 8.1.6 and Laravel 11 minimum requirement is 8.2.

So I thought by using Laravel Herd would fix the problem because PHP 8.3 is installed by default.

I cannot also install Laravel via the command line via C:\Users\Name\Herd using composer create-project --prefer-dist laravel/laravel project-name "11". The error I get is this 'Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0'.

0 likes
3 replies
migsAV's avatar

The problem could be that it's picking up the PHP version in your global composer file. Try adding herd at the start and see if that works

herd composer create-project --prefer-dist laravel/laravel project-name

MohamedMouloudj's avatar

I know this is old now, but for everyone looking to solve this issue, this is how i did:

  1. I was using Xamp to work with PHP before jumping to Laravel, so I deleted all paths pointing to Xamp from my system's environment variables.
  2. run PHP -v to check if it is above 8.2 (at this moment, Herd is already installed and PHP version is selected)
  3. Now, I tried to create a new site from Herd GUI, but still get Laravel v10. So I directly ran herd composer create-project laravel/laravel project-name. This installed Laravel v12 and properly set up the project

Please or to participate in this conversation.