You have not to move index.php in public folder. It is located in resources.views and called by a route. https://laravel.com/docs/5.4/routing
Are you shure that your apache is well configured?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi. I have picked up a project which uses Laravel 5.4 and the index.php is in the root folder. I can get the site running by moving the file to the public folder and updating the paths to autoload.php & app.php but the paths for anything in the public folder do not work and wondered if this would be as a result of the change?
Anyone know how to get this working by keeping the index.php in the root?
Thanks
Please or to participate in this conversation.