Change http://localhost:8080 to http:myapp.dev

I’m running a fresh Laravel installation on docker using the php:7.2-apache-stretch image and I access the application through http:localhost:8080 on my browser.

What I want to do is to set a custom url, something like http://myapp.dev, so what I’ve done is I’ve set in the .env file APP_URL=myapp.dev and on my local /etc/hosts file 127.0.0.1 myapp.dev, but when try to access I get a blank page

Do I need some additional configuration to do?

Source: StackOverflow