0
0

More than 3 years have passed since last update.

【Laravel】MAMP環境にLaravelをインストールする方法

Last updated at Posted at 2020-04-26

①MAMPのhtdocsにディレクトリ移動

ターミナルを開き、下記コマンドを入力。

$ cd /Applications/MAMP/htdocs

②Laravelプロジェクト作成

htdocs配下において、下記コマンドを入力。

公文)
$ composer create-project laravel/laravel プロジェクト名 --prefer-dist "6.0.*"
例)
$ composer create-project laravel/laravel laravel_test --prefer-dist "6.0.*"

③対象プロジェクトのディレクトリに移動

htdocs配下において、下記コマンドを入力。

公文)
$ cd プロジェクト名
例)
$ cd laravel_test

④サーバ起動

③で作成したディレクトリ配下において、下記コマンドを入力。

$ php artisan serve

⑤サーバ起動確認

ブラウザを開き、下記にアクセス。
http://127.0.0.1:8000

⑥サーバ停止

「control」 + 「c」 を同時に押下

0
0
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
0
0