You should never attempt to move the index.php file to your project's root, as serving the application from the project root will expose many sensitive configuration files to the public Internet:
Please ensure, like the configuration below, your web server directs all requests to your application's public/index.php file. If you would like assistance in managing your server, consider using a first-party Laravel server management and deployment service such as Laravel Forge.
Most likely, this file will need to be customized depending on your server's configuration.
If you are deploying your application to a server that is running Nginx, you may use the following configuration file as a starting point for configuring your web server.