How to install Laravel? in mac

https://devforgalaxy.github.i.

I am here to see
the first step alone is off

.
sudo php -r "readfile("https://getcomposer.org/installer");" > composer-setup.php
-bash: composer-setup.php: Permission denied

you can see https://laravel-china.org/doc.


here.

there are two ways to install:
1, install through the Laravel installer:

1. `composer global require "laravel/installer"`
2. `laravel new blog`   

2. Install via Composer's create-project:
composer create-project-- prefer-dist laravel/laravel blog

but all need to install composer,. For more information, please see the official documentation Composer official documentation

.
Menu