title: Saving Intervention Image In Owners Folder in Laravel 5
body: <p>I can change my code to save the uploaded image in the public dir but not when I want to their uploaded image in a folder as their company's name. For example of what works: </p>
  
  <pre><code>/public/company_img/&lt;filename&gt;.jpg
  </code></pre>
  
  <p>If the user's company name is Foo, I want this when they save save their uploaded image:</p>
  
  <pre><code>/public/company_img/foo/&lt;filename&gt;.jpg
  </code></pre>
  
  <p>This is in my controller:</p>
  
  <pre><code>$image = Input::file('company_logo');
  $filename = $image-&gt;getClientOriginalName();
  $path = public_path('company_img/' . Auth::user()-&gt;company_name . '/' . $filename);
  
  // I am saying to create the dir if it's not there.
  File::exists($path) or File::makeDirectory($path); // this seems to be the issue
  
  // saving the file
  Image::make($image-&gt;getRealPath())-&gt;resize('280', '200')-&gt;save($path);
  </code></pre>
  
  <p>Just looking at that you can easily see what it's doing. My logs shows nothing and the browser goes blank after I hit the update button. Any ideas</p>