trying to add strings in a file on the same line using Storage:: disk('local')->append() method but in the output file I'm getting each string on a new line
what i did is:
$string = "first-";
Storage::disk('local')->append('filename', $string);
$string = "second";
Storage::disk('local')->append('filename', $string);
and the output file was
first-
second
but I'm trying to get the file without line breaks like
first-second
$contents = file_get_contents(...), append inPHP, via$contents .= 'second';, then put the whole string into the file. (or something similar)FileSystemclass (extension ofStorage::disk()facade method) here: laravel.com/api/5.8/Illuminate/Contracts/Filesystem/…. At a glance, I don't see anything, but do some digging, might find something that works.