LoginSignup
2
2

More than 5 years have passed since last update.

UbuntuにLaravelをインストールする

Last updated at Posted at 2018-03-11

お仕事でLaravelを使いそうなので、しれっとPHPの環境を整備したときの作業メモ。

チュートリアルに従って作業。
https://readouble.com/laravel/5.6/ja/installation.html

coposerからinstallerを使用

$ composer global require "laravel/installer"

インストール先

.config/composer/vendor/bin/

この配下にlaravelコマンドまでのsymbolic linkがあるので
.bashrcにパス追加しておく。

で、確認。

$ laravel -v
Laravel Installer 2.0.1

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help  Displays help for a command
  list  Lists commands
  new   Create a new Laravel application.

よさげ。

あとは laravel new hogehogeとかしてプロジェクトの雛形を作る。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2