title: Laravel4 unable to create a directory although I gave correct permissions
body: <p>Laravel4 unable to create a directory although I gave correct permissions.
  FileException error happened, <a href="http://s28.postimg.org/xkor8srxp/2014_01_03_2_53_18.png" rel="noreferrer">http://s28.postimg.org/xkor8srxp/2014_01_03_2_53_18.png</a>.
  I tried lots of permissions..</p>
  
  <ul>
  <li>sudo chmod -R 777 storage</li>
  <li>sudo chmod -R 707 storage</li>
  <li>sudo chmod -R o+rwx storage</li>
  </ul>
  
  <p>and I even restarted Apache server.
  I have been googling 24 hours or so, and still can't figure out..
  Here are the routes and view files.</p>
  
  <pre><code>// routes.php
  
  Route::post('handle-form', function()
  {
      $name = Input::file('book')-&gt;getClientOriginalName();
  Input::file('book')-&gt;move('/storage/directory', $name);
  return 'File was moved.';
  });
  
  // form2.blade.php
  &lt;form action="{{ url('handle-form') }}"
    method="POST"
    enctype="multipart/form-data"&gt;
  
  &lt;input type="file" name="book" /&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Currently what I did to the routes.php by following your help,</p>
  
  <pre><code>Route::post('handle-form', function()
  {
  $name = Input::file('book')-&gt;getClientOriginalName();
  Input::file('book')-&gt;move(public_path().'/storage/directory', $name); 
  return 'File was moved.';
  });
  </code></pre>
  
  <p>and the permission I gave was <strong>sudo chmod -R 777 storage</strong></p>