title: Put file in sub folder to google drive use laravel
body: <p>I have problems in my code to upload files to google drive when i using package <code>nao-pon/flysystem-google-drive</code>, this code will be created text.txt to subdirectory = "Contract", but I have many folders with different names and they are the same 2 folders Children are: Contract, Project. I can't find a way to create <code>text.txt</code> into the folder name I want</p>
  
  <p>I'm tried to fix query in </p>
  
  <pre><code>$dir = $contents-&gt;where('type', '=', 'dir')
      -&gt;where('filename', '=', 'Contract')
      -&gt;first();
  </code></pre>
  
  <p>but it not work.</p>
  
  <pre><code>    Route::get('put-in-dir', function() {
  $dir = '/';
  $recursive = true; // Get subdirectories also?
  $contents = collect(Storage::cloud()-&gt;listContents($dir, $recursive));
  
  $dir = $contents-&gt;where('type', '=', 'dir')
      -&gt;where('filename', '=', 'Contract')
      -&gt;first(); // There could be duplicate directory names!
  
  if ( ! $dir) {
      return 'Directory does not exist!';
  }
  
  Storage::cloud()-&gt;put($dir['path'].'/test.txt', 'Hello World');
  
  return 'File was created in the sub directory in Google Drive';
  });
  </code></pre>
  
  <p>i want to create text.txt into forder i want. examp: i want to create in Contract of Yasuo..</p>
  
  <pre><code>Shaco-
    --Contract
    --Project
  Yasuo-
    --Contract
    --Project
  </code></pre>