vendredi 20 avril 2018

Laravel Storage::disk('local')->put('file.txt', 'Content') line breaks and tabs in content

I am testing how to make files via commandline.

public function handle()
{
    Storage::disk('local')->put('file.txt', '<?php echo 'test';echo 'test1';');
}

File file.txt:

I want to make, so with tabs, linebreaks, space , etc:

<?php
echo 'test';

echo 'test1';



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2J7ptSY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire