database setup
It’s often a good idea to store credentials such as those above in environment variables rather than hardcoding them to my configuration file. This will allow me to publish my Laravel application to GitHub without fear of my credentials being visible to the world. This is done through environment configuration.
This is where we’ll define our environment variables...
it is changed to its previous version...
it is changed to use environment variables...