I am trying to change the path output of {{ url('images/image.png') }}
and {{ asset('images/image.png') }}
Based on my reading, it sounds like I just need to set APP_URL in my .env file and off we go. Well, unfortunately that is not the case. I have set APP_URL=http://localhost
in my .env file. I also set 'url' => env('APP_URL', 'http://broken.af')
in my config/app.php file. Additionally, I have also tried setting ASSET_URL in both locations with the same result. I have also run artisan cache:clear
, artisan config:clear
and artisan config:cache
. I also tried restarting the server just to be extra sure. For some reason Laravel keeps using the servers configured hostname for these values.
Not a dupe, we are not talking about the route paths, we are talking about the url and asset function and APP_URL and ASSET_URL not doing anything.