Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Octos's avatar
Level 1

Moving Root Folder generate Error

Hello, i have error in vscode. before here is my root folder

/ =>app =>bootstrap =>bla bla bla

after i put all laravel folder into new folder, vscode cannot link to the variable, so my git folder i make, to make sure when deploy. I dont need to move the public folder elsewhere. i change to this

/ =>deployment =>index.php =>htaccess

0 likes
2 replies
jlrdw's avatar

Not sure what all you moved, but I suggest setting up laravels folder structure correctly and properly point to public as the document root. And see https://laravel.com/docs/9.x/deployment

I usually have main laravel out of web altogether (an advanced setup). But if you are not familiar with such a setup, follow the pointing to public as document root.

Snapey's avatar

don't mess with the folder structure

Please or to participate in this conversation.