You can use env variables to define the host, connection, password and database so you need not to manually define values in app\config\database.php. That's an appropriate way of using env variables.

Looking for Laravel | DevOps jobs, GSoC alum and GCI mentor at Drupal, @ankitjain28may https://github.com/ankitjain28may ankitjain28may77@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store