title: Laravel: How to decide using server.php or public/index.php
body: <p>Laravel’ server.php and public/index.php are do the same thing, server.php is just require the public/index.php. So in my Apache http.conf file, I can use server.php or public/index.php in DirectoryIndex, and also can set the DocumentRoot to the project root folder or the project’s public folder. The question is which case should I use the right configuration, and how to use it.</p>