title: Laravel route generation problem with APP_URL override
body: <p>I have in .env file defined APP_URL. On apache web server host is configured to respond only for domain exampledomain.com</p>
  <p>In routes is for example route defined as
  Route::get('/orders/main-table', [\App\Http\Controllers\OrdersController::class, 'main_table'])-&gt;name('orders.offers_and_requests');</p>
  <p>When following code is executed sometimes instead of expected url starting with <a href="https://exampledomain.com/....." rel="nofollow noreferrer">https://exampledomain.com/.....</a>. I get https://ipaddress-of-server/.... and there is no rule  when I get this. I personaly can't replicate to get this result but sometimes like some hacker override this... I would't notice if I did't analyzed activity log as I for debug purposes log all activity in app... All these routes from which can be executed this url generation are protected, so hacker can't just use post to generate these links.</p>
  <p>route('orders.offers_and_requests');</p>