What does the “.env” file in Laravel contain?

What does the “.env” file in Laravel contain?

a) Database and application configuration
b) Controller logic
c) HTML templates
d) CSS styles

Answer:

a) Database and application configuration

Explanation:

The .env file in Laravel contains environment-specific configuration settings such as database credentials, app URL, and mail settings.

Reference:

Laravel Quiz – MCQ – Multiple Choice Questions

Scroll to Top