title: Laravel document root set up for domain by cpanel - security threat?
body: <p>I have a Laravel installation on my shared hosting plan and they use CPanel. </p>
  
  <p>When I set up the domain, I pointed it's document root to the Laravel public folder, and everything seems to be working okay. </p>
  
  <p>Is this good practice? I've been told that it's not good to put it in the public_html folder at all, but if the server is only serving documents for that domain out of the public folder, is that the same thing as having it outside of the public_html folder?</p>
  
  <p>I've set the domain up in cPanel to serve out of the /home/user/public_html/site.com/public.</p>
  
  <p>I just want to make sure that it's secure.</p>