title: Laravel Impossible to Create Root Directory
body: <p>I've checked out the other posts about this, mine seems to be unique for some reason</p>
  
  <p>Essentially what I'm trying to do is store uploaded photos in the public directory for easy access, however when I store them I'm trying to store them in a user specific folder, so</p>
  
  <pre><code>/public/photos/$User-&gt;id/$filename.jpg
  </code></pre>
  
  <p>Right now I have Dropzone uploading the file, and I've added to my filesystem.php this statement</p>
  
  <pre><code>'public_uploads' =&gt; [
    'driver' =&gt; 'local',
    'root'   =&gt; public_path(),
  ],
  </code></pre>
  
  <p>So in theory when I access that using </p>
  
  <pre><code>Storage::disk('public_uploads') 
  </code></pre>
  
  <p>it should retrieve the correct path</p>
  
  <p>Here's my controller as well</p>
  
  <pre><code>$User = User::find(Auth::user()-&gt;id);
  $Photo = Request::file('photo');
  Storage::disk('public_uploads')-&gt;put("photos/$User-&gt;id", $Photo);
  </code></pre>
  
  <p>Then I get this error from Laravel on upload</p>
  
  <pre><code>{message: "Impossible to create the root directory "/censoredfilesystem/public/Photos/1".",…}
  </code></pre>
  
  <p>No idea where the period is coming from and any help is greatly appreciated</p>
  
  <p>Thanks all!</p>
  
  <ul>
  <li>Zach</li>
  </ul>