title: How do I append a new line to a bash file using Laravel's file append method?
body: <p>I am attempting to insert a new line so the dynamic callback can be added however I'm not having much success; the curl isn't on a brand new line which breaks the script. It is instead on the last line alongside a mkdir.</p>
  <pre><code>File::put(storage_path('app/scripts/'.$rand.'.script'), $this-&gt;deployment-&gt;script);
  
  File::append(storage_path('app/scripts/'.$rand.'.script'), '  \n');
  // Doesn't break onto a new line. 
  
  File::append(storage_path('app/scripts/'.$rand.'.script'), $callbackURL);
  
  $sendFile = ssh2_scp_send($connection, storage_path('app/scripts/'.$rand.'.script'), 'deploy.sh');
  ssh2_exec($connection, 'sh deploy.sh');
  
  </code></pre>
  <p>Any assistance would be appreciated! Thank you so much.</p>