What is Document Root?
hosting
The document root is the directory on the server that a domain serves files from, typically public_html. Pointing a domain's document root at the right folder is what makes a site appear at its URL. Laravel apps should point the document root at the /public directory, not the project root, so the .env file is never web-accessible.
The short answer above covers the decision most buyers are making. The main entry for document root carries the complete definition, a usage note and the terms most often confused with it, so the two pages together answer both the quick question and the follow-ups.