DEV Community

Nahuel Segovia
Nahuel Segovia

Posted on • Edited on

5 4

Como instalar Laravel en Mac OS

Lo primero que tenemos que hacer es instalar homebrew, para eso seguimos los pasos en la página oficial.

También instalamos composer, lo podemos hacer a través de la página oficial Link, una vez instalado movemos composer hacia /usr/local/bin para poder usarlo en cualquier lugar.

mv composer.phar /usr/local/bin/composer
Enter fullscreen mode Exit fullscreen mode

Luego de esto instalamos php y mysql:

brew install php
Enter fullscreen mode Exit fullscreen mode
brew install mysql
Enter fullscreen mode Exit fullscreen mode

Una vez hecho esto procedemos a instalar valet

composer global require laravel/valet
Enter fullscreen mode Exit fullscreen mode

Y también el instalador de laravel

composer global require laravel/installer
Enter fullscreen mode Exit fullscreen mode

Ahora añadimos esto a ~/.bashrc

export path="$HOME/.composer/vendor/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

ejecutamos:

source ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

Ya podemos crear nuestro proyecto de Laravel!

laravel new blog
Enter fullscreen mode Exit fullscreen mode

Alt Text

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay