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

laravel で php artisan serve してビルトインサーバーを起動すると、ローカルPCからアクセスできない

Last updated at Posted at 2019-05-17

laravel で php artisan serve してビルトインサーバーを起動すると、ローカルPCからアクセスできない

###困ったこと
 超久々にvagrant 立ち上げて laravel プロジェクトを作ったら、アクセスできなかった。

###解決策
ホストオプションを以下にするとローカル環境(プライベートアドレス)からアクセスできるらしい
php artisan serve --host 0.0.0.0

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