title: How to read content of sftp text file line by line and save into database?
body: <p>I get the file content using through the server</p>
  
  <pre><code>Storage::disk('sftp')-&gt;get($k);
  </code></pre>
  
  <p>ps: $k  is the path of the txt file in server.</p>
  
  <p>This will return </p>
  
  <pre><code>No.|Desc|Qty|
  1|abc|1|
  2|efg|2|
  3|hhh|3|
  </code></pre>
  
  <p>How can i read this content line by line and save to database or i need to do locally?</p>