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

iftekhs's avatar
Level 13

How to run laravel 5.7 on php 8

Hi, i'm trying to run a laravel 5.7 application but my php version is 8 so i get this error ->

laravel/framework[v5.7.0, ..., 5.7.x-dev] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.

I tried doing this ->

"php": "^7.1.3|^8.0.3",

But it dosent work i think i need to update the laravel framework rather than php so is there any good guide on how to update from laravel from 5.7 to something that is satisfied by php 8?

0 likes
1 reply

Please or to participate in this conversation.