Install
Download composer first https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Move composer.phar to a directory that is in your path
mv composer.phar /usr/local/bin/composer
Download laravel https://laravel.com/docs/6.x#installing-laravel
composer global require "larval/installer"
Add path in zshrc
- go to zshrc
vi ~/.zshrc
- Add path
export PATH=$HOME/.composer/vender/bin:$PATH
terminate terminal or iterm and then restart terminal for using the larval
Create your project in directory where you want
laravel new [projectName]
https://laracasts.com/series/laravel-from-scratch-2018/episodes/2?autoplay=true
'Laravel' 카테고리의 다른 글
Laravel env() vs PHP getenv() (0) | 2020.02.21 |
---|---|
Laravel optional helper 라라벨 (0) | 2020.02.21 |
PhpStorm 공식 홈페이지 단축키 모음 (0) | 2020.01.25 |
Laravel tests, RefreshDatabase (0) | 2020.01.25 |
Laravel DatabaseMigrations, DatabaseTransactions (0) | 2020.01.25 |