Laravel Storage file encoding
15:44 02 Mar 2018

I'm trying to save text file as UTF-8 by using Laravel's Storage facade. Unfortunately couldn't find a way and it saves as us-ascii. How can I save as UTF-8?

Currently I'm using following code to save file;

Storage::disk('public')->put('files/test.txt", $fileData);

php laravel laravel-5