Manage files with Laravel Storage:
Store Files
Storage::put('file.txt', 'Contents');
Storage::disk('s3')->put('file.txt', 'Contents');Upload Files
$path = $request->file('avatar')->store('avatars');
$path = $request->file('avatar')->storeAs('avatars', 'user_1.jpg');Get Files
$contents = Storage::get('file.txt');
$url = Storage::url('file.txt');Delete Files
Storage::delete('file.txt');
Storage::delete(['file1.txt', 'file2.txt']);