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.
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.