These instructions are for Linux. If you have a Mac, please follow the official guide mentioned in the reference at the end of this article
If composer is installed, you can do this:
composer global require laravel/installer
If you get this:
- laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
Do this:
sudo apt-get install php-zip
Edit .bashrc
Under the export PATH statement, do this:
export PATH=$PATH:$HOME/.config/composer/vendor/bin
Reference:
https://laravel.com/docs/5.7/installation