1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel10のプロジェクトをローカル環境に作成するまでの手順

Posted at

【個人用メモ】
ローカル環境でLaravelのプロジェクトを新規作成するまでの手順を以下に記載していく。

前提

手順1. 新規プロジェクトの格納先に移動

今回は「ドキュメント」配下に新規プロジェクトを作成する

cd ~/Documents

手順2. composerを用いてプロジェクトを作成

移動したディレクトリで以下のコマンドを実行
『{プロジェクト名}』には、任意のプロジェクト名を入力

composer create-project laravel/laravel {プロジェクト名} "10.*" --prefer-dist

例えば「example-app」のプロジェクト名としたい場合は

composer create-project laravel/laravel example-app "10.*" --prefer-dist

とする

手順3. 作成したプロジェクトを起動して動作確認

手順2で作成したプロジェクトのディレクトリに移動

cd {プロジェクト名}

「example-app」でプロジェクトを作成した場合は

cd example-app

LaravelのArtisan開発サーバを起動

php artisan serve

上記のコマンドを実行することで、Webブラウザにてhttp://localhost:8000からアプリケーションにアクセスできるようになる

下記のページが表示されたら成功
スクリーンショット 2023-09-05 16.43.06.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?