Level 67
No, that's how it should be. The only thing that should be exposed to the outside world is the /public dir of laravel.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I have uploaded my project to root folder of my cpanel and make the public folder inside my laravel project as document root (please see this screenshot for better understanding https://imgur.com/a/iXys26G ).
Is there any security concern for this method?
Thanks
Please or to participate in this conversation.