Writing text in a file ready files via the controller laravel Storage::disk code example
Example 1: laravel get file contents from storage
$contents = Storage::disk('local')->get('file.txt');
Example 2: laravel store file
$path = $request->file('avatar')->store(
'avatars', 'public'
);