Files and folders in the laravels shared folder are for web access. For security, all other files and folders in the laravel structure should not be accessible on the Internet.
Moving index.php to the root of laravels will disrupt the structure and ignore best practices.
Follow these instructions to make sure your server configurations point to the DocumentRoot shared directory.
source share