title: LARAVEL How to transfer file from local (public) to FTP using Laravel
body: <p>I wanna ask a question, anyone know how to transfer data from local / public to ftp, I'm using Storage class
  <a href="https://laravel.com/docs/5.4/filesystem" rel="nofollow noreferrer">https://laravel.com/docs/5.4/filesystem</a></p>
  
  <p>Here's my code</p>
  
  <pre><code>$file_local = Storage::disk('local')-&gt;get('public/uploads/ftp/file.pdf');
  $file_ftp = Storage::disk('ftp')-&gt;put('/file.pdf', $file_local');
  </code></pre>
  
  <p>But my code is not working, when I open the file on ftp, the file is broken, then I open it with notepad, inside file, the content is 'public/uploads/ftp/file.pdf' the content I mean content should on local not what I was wrote,</p>
  
  <p>Anyone know how to transfer file from local to ftp, sorry for my bad English, Thanks for your answer anyway</p>