.env.laravel
You can force Laravel to load a different environment file based on the server hostname. In bootstrap/app.php :
Here's a step-by-step guide on how to use a .env file in Laravel: .env.laravel
Properly managing this file is critical to preventing data breaches. Laravel error 500, welcome page not loading - Laracasts You can force Laravel to load a different
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret .env.laravel