LoginSignup
4
2

More than 3 years have passed since last update.

5ステップでMacにLaravel環境を構築する(Composerインストールからローカル実行まで)

Last updated at Posted at 2019-05-15

Composerをインストール

$ brew install composer

brewが入っていない方は下記を参照ください
macOS 用パッケージマネージャー — Homebrew

laravelインストール

$ composer global require laravel/installer

Pathを通す

$ export PATH=$PATH:$HOME/.composer/vendor/bin
$ source ~/.bash_profile

Laravelプロジェクト作成

$ laravel new laravel_sandbox

ローカル実行

$ cd laravel_sandbox
$ php -v
PHP 7.1.23 (cli) (built: Feb 22 2019 22:08:13) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ php artisan serve
Laravel development server started: <http://127.0.0.1:8000>

ブラウザでhttp://127.0.0.1:8000にアクセスし、起動が確認できます。

スクリーンショット 2019-05-15 12.04.47.png

参考にしたページ

4
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
4
2