title: Proper laravel storage permissions
body: <p>I have set my local laravel 5 storage folder to permissions <code>755</code> and to user <code>www-data</code>, as I use <code>apache2</code> on my machine. However I was getting blank screens instead of stack traces on errors so I changed the permissions to <code>777</code> which resolved the issue.</p>
  
  <p>However I feel this is a (terrible) bandaid as really it is allowing <em>any</em> user to modify this directory with all permissions rather than the correct user with limited permissions. I don't know if this issue will affect the development or production server but granting those permissions in such a scenario is not an option.</p>
  
  <p>How do I figure out <em>which</em> user (or group) actually needs permissions to use this directory for laravel logging so I can assign the directory to them and return the permissions back to 755?</p>
  
  <p>I have tried</p>
  
  <pre><code>ps aux | egrep '(apache|httpd)'
  </code></pre>
  
  <p>but it shows that most processes are being run as <code>www-data</code>...</p>