본문 바로가기

Laravel

라라벨 설치 Laravel install

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

 

Laracasts

Push your web developments skills to the next level, through expert screencasts on Laravel, Vue, and so much more.

laracasts.com