1se Illuminate\Http\File;
2use Illuminate\Support\Facades\Storage;
3
4// Automatically generate a unique ID for file name...
5Storage::putFile('photos', new File('/path/to/photo'));
6
7// Manually specify a file name...
8Storage::putFileAs('photos', new File('/path/to/photo'), 'photo.jpg');