DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=
Regardless of your intent, understanding how to leverage environment files specifically for Laravel will save you from configuration nightmares. .env.laravel
// In bootstrap/app.php, modify the Application instance $app->loadEnvironmentFrom('.env.laravel'); DB_CONNECTION=mysql DB_HOST=127