title: Laravel 5.3 Storage::put creates a directory with the file name
body: <p>I'm using Laravel's file storage functionality to save a file:</p>
  
  <pre><code>public function dataPost(Request $request) {
  
      $fileInForm = 'doc';
  
      if ($request-&gt;hasFile($fileInForm)) {
  
          $file = $request-&gt;file($fileInForm);
          if ($file-&gt;isValid()) {
  
              // Filename is hashed filename + part of timestamp
              $hashedName = hash_file('md5', $file-&gt;path());
              $timestamp = microtime() * 1000000;
  
              $newFilename = $hashedName . $timestamp . '.' . $file-&gt;getClientOriginalExtension();
  
              Storage::disk('local')-&gt;put($newFilename, $file);
          }
      }
  }
  </code></pre>
  
  <p>This does save the file, but inside a directory named the same as the file, for example:</p>
  
  <p><code>storage/app/952d6c009.jpg/952d6c009.jpg</code></p>
  
  <p>or</p>
  
  <p><code>storage/app/234234234.jpg/234234234.jpg</code></p>
  
  <p>Is this expected? Is there any way to just store the file without a separate directory for each file?</p>
  
  <p>Thanks!</p>