title: How to output array with new line separated values using Laravel Storage:put
body: <p><strong>How to output an each array element in a new line with Laravel Storage:put?</strong></p>
  <p>I have an array like below that I want to put into a file, array_test.txt, where each element goes on a new line.</p>
  <pre><code>$arrTest
  array:2 [
    0 =&gt; &quot;Val 1&quot;
    1 =&gt; &quot;Val 2&quot;
  ]
  </code></pre>
  <p>Using Laravel's Storage, it goes like <code>Storage:put($fileName, $arrTest);</code> However the output is on a single line. Storage as an $options tag, but that seems to just be for setting files as public or private.
  If you had a link to what $options could be inputted, I'd like that, I can't find any documentation for what all the $options are for Storage:put!</p>
  <p>Another option seems to be using Storage:append($fileName, $arrTest[0]) and then loop over all results.</p>
  <p>Is there some easy way to output an entire array's elements on new lines with Storage:put instead of just a single line?</p>