I am having the problem that all my links generated with the route() function of laravel resolve to the local IP of the webserver instead of the domain written in the APP_URL section of the .env file.
- The APP_URL is set correctly
- nginx configured properly
Actually rendered:
<a href="http://sub.domain.com/1">some product id</a>
What it should be like:
<a href="http://10.101.171.23/1">some product id</a>
Code in the view:
<a href="{{ route('products.show', $product->id) }}">some product id</a>