title: Correct permission for Laravel folders on server
body: <p>I am currently about to deploy a Laravel app. One of my features is to generate a PDF and save the file in the storage folder. But the problem is, it only works when the storage folder has <code>777</code> permission. Of course that is a big security risk once it is deployed. How to I solve it? Because if I don't <code>777</code> permission, it returns a <code>Warning: mkdir() [function.mkdir]: Permission denied in ...</code> error.</p>
  
  <p>Thank you :)</p>