0
0

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 3 years have passed since last update.

Laravelに内蔵されているサーバーを起動してプロジェクトにアクセスする備忘録

Last updated at Posted at 2020-12-09

まず動かしたいプロジェクトに移動する。自分の場合はneomediaprojectspaceというローカルディレクトリで動かしたいので

コマンドプロンプト
>cd neomediaprojectworkspace
>php artisan serve

とします。すると

コマンドプロンプト
Starting Laravel development server: http://127.0.0.1:8000
[Thu Dec 10 01:10:58 2020] PHP 8.0.0 Development Server (http://127.0.0.1:8000) started

でwebサーバーが立ち上がるので、

「localhost:8000」を検索エンジンに記載して接続します。

コマンドプロンプト
Starting Laravel development server: http://127.0.0.1:8000
[Thu Dec 10 01:21:09 2020] PHP 8.0.0 Development Server (http://127.0.0.1:8000) started
[Thu Dec 10 01:21:48 2020] 127.0.0.1:54121 Accepted
[Thu Dec 10 01:21:49 2020] 127.0.0.1:54121 Closing
[Thu Dec 10 01:21:49 2020] 127.0.0.1:54124 Accepted
[Thu Dec 10 01:21:49 2020] 127.0.0.1:54124 [200]: GET /favicon.ico
[Thu Dec 10 01:21:49 2020] 127.0.0.1:54124 Closing

スクリーンショット 2020-12-10 011644.png

とLaravelのデフォルトの画面へ接続することができます。
これより前のバージョンのララベルのデフォルト画面が画面の真ん中にLaravelの文字が書いてあり、個人的にがそのほうが好きだったのですが、、

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?