Laravel - File Storage - Prepending Appending To Files

The prepend and append methods allow you to write to the beginning or end of a file:

    
    Storage::prepend('file.log', 'Prepended Text');
    
    Storage::append('file.log', 'Appended Text');