DEV Community

Ariel Mejia
Ariel Mejia

Posted on

2 2

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.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs