Install Laravel on Mac OS

Vo Thanh Tung
Jun 25 · 1 min read

It has been a long time from the last time I used Laravel. Today I have to install Laravel for a new project. I don't think that it is easy as excepted :)

  1. Install composer
    follow this link to install https://getcomposer.org/download/
    Because of this script didn't help you to add the path to bash file, so you need to add the bash file.
mv composer.phar /usr/local/bin/composer

2. Install Laravel
Official document https://laravel.com/docs/5.8

composer global require laravel/installer
#maybe you need reload bash file
source ~/.bash_profile
# zshrc if you are using zshrc source ~/.zshrc

3. Set up new project

laravel new blog
cd blog
php artisan serve

Now open web browser http://localhost:8000/

Vo Thanh Tung

Written by

https://github.com/thanhtungka91