Install the installer
for Laravel projects:
composer global require laravel/installer
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
source ~/.bashrc
If you are running zsh execute these commands:
echo 'PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH' >> ~/.zshrc
source ~/.zshrc
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
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)