DEV Community 👩‍💻👨‍💻

Ariel Mejia
Ariel Mejia

Posted on

Add Laravel Installer in MontereyOS

Install the installer for Laravel projects:

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

Place Composer's system vendor bin directory in your $PATH

If you are using bash in your terminal, run these commands:

echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
Enter fullscreen mode Exit fullscreen mode
source ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

If you are running zsh execute these commands:

echo 'PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH' >> ~/.zshrc
Enter fullscreen mode Exit fullscreen mode
source ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Create your first Laravel project with the installer

I recommend to set a directory for your projects, if you are using valet you should run the valet park command inside that directory, inside that directory you can create new Laravel projects:

laravel new example
Enter fullscreen mode Exit fullscreen mode

Now you can visit in the browser this site: http://example.test/

With the Laravel installer you can add multiple flags to set more features like create a github project with a branch, etc you can check this flags in the laravel.com site.

Top comments (0)

We are hiring! Do you want to be our Senior Platform Engineer? Are you capable of chipping in across sysadmin, ops, and site reliability work, while supporting the open source stack that runs DEV and other communities?

This role might just be for you!

Apply now