Laravel and ngrok: url domain is not correct for routes and assets

后端 未结 4 1180
花落未央
花落未央 2021-02-06 00:45

My setup:

  • Homestead on Mac OSX with multiple sites configured
  • I have one site setup using domfit.test as the local domain (auto mapped using hostsupdater)
4条回答
  •  温柔的废话
    2021-02-06 01:16

    In your app.config and .env file, try changing it to:

    'url' => env('APP_URL', 'http://localhost'),

提交回复
热议问题