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

neomuckel's avatar

Solution for Laravel on new Macbook M1

hello and a happy new year.

i got a new macbook with m1 cpu. can you tell me the best solution for work on it with laravel ?

0 likes
10 replies
zerosAndOnes's avatar

does composer using terminal not working on it? I havent looked into docker... why exactly do we need it?

neomuckel's avatar

thanks...

I tried to install Sail, but the mysql version is not for the M1, I got these message... Pulling mysql (mysql:8.0)... 8.0: Pulling from library/mysql ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

rickycahyadi's avatar

just starting using M1 to dev the laravel stuck from beginning, can't install the composer

rwilliams's avatar

Adding platform: linux/x86_64 to your mysql service in docker-compose.yml will have you on your way, e.g.:

    mysql:
        platform: linux/x86_64
        image: 'mysql:8.0'
4 likes
nbarshain's avatar

This worked! After wasting a half-day trying to set up mariaDB, this was an instant solution. Thanks!

Please or to participate in this conversation.