Install Laravel Via Composer
- Installing:
composer global require laravel/installer
- Check that
laravelis installed in this path~/composer/vendor/bin
cd ~/.composer/vendor/bin
To get the full path and to copy and set it on
/etc/pathsthen we can usepwdon~/composer/vendor/bin
- Insert the path on
/etc/paths:
sudo vim /etc/paths
# ...
/Users/username/composer/vendor/bin # path inserted
Using laravel new
laravel new test-project
Top comments (0)