LoginSignup
2
1

【route】GitHub CodespacesでLaravelを使うときの注意点【localhost:8000】

Last updated at Posted at 2023-09-22

Create codespace押します

image.png

ターミナルで以下を実行します。
proxiesを有効にしないと、assetやroute周りがlocalhost:8000になります。

composer install
sed -i "s/proxies;/proxies = '*';/" app/Http/Middleware/TrustProxies.php
cp .env.example .env
php artisan key:generate
php artisan serve

'*'['127.0.0.1']にすることも可能です。

参考

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