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

onurzdgn's avatar

Laravel 10 and PHP 7.4

Hi everyone. I develop my project with Laravel 10. However my hosting have 7.4 and my problem is starting here. How can I share my project? Am I change Laravel version or my change php from composer.json.

0 likes
16 replies
tykus's avatar

@onurzdgn you cannot; Laravel 10 requires PHP 8.1 minimum. If you're hosting cannot offer a supported PHP version, then you need either (i) a better hosting solution or (ii) run an unsupported Laravel version (v8) that runs on PHP 7.4

1 like
ezenteno's avatar

It is best that you change to PHP 8, but if you cannot for some reason, you can use docker.

onurzdgn's avatar

@ezenteno I think to but I want to ask for another way. I need to chanege laravel/framework from composer.json and than composer update write? If it is true, this time am I need heard for development?

johnDoe220's avatar

if you using cpanel. login to whm and upgrade php to latest version!this is very simple

onurzdgn's avatar

@johnDoe220 I can't update PHP version, because where is an WordPress web. When I update PHPi it not working.

Snapey's avatar

making Laravel 10 work with a lower version is never going to work, so you can forget messing with composer etc

You should upgrade both sites, or move the Laravel app to a new server

1 like
onurzdgn's avatar

@Snapey I can't update PHP because I have wordpress website. If I update it not work. It must to work. I can't change know to. Why I can't touch composer? Am I create new project with Laravel 8?

tykus's avatar

@onurzdgn your Wordpress application, and your Laravel do not need to run on the same web server.

1 like
onurzdgn's avatar

@tykus You write however the creator wordpress theme is not updated yet

onurzdgn's avatar

@tykus Maybe. I will try update myself or they need buy another hosting.

Please or to participate in this conversation.