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

jred_lewis's avatar

Update PHP with Laravel Sail

So, when I got a new laptop a few weeks ago, I decided to transition my dev environment to be Laravel Sail from previously using Laragon. I noticed with GitHub Actions that there's a new release for PHP 8. So, I was wondering how I would upgrade the version of PHP that my Sail environment is using.

0 likes
2 replies
sr57's avatar

HI @jred_lewis

I use docker only recently but lxc (docker base) for a long time and there is no particular problem to upgrade php or others. So, for me, the easiest thing I should do is to enter the container (or better a clone), install php 8 and test, then if it's ok, adapt the configuration of sail/docker-compose.

jred_lewis's avatar
jred_lewis
OP
Best Answer
Level 35

Figured it out with this article, replacing the references to docker-compose in the commands for vendor/bin/sail instead.

Please or to participate in this conversation.