Files: Storing Uploaded Files

$path = $request->photo->store('images');

$path = $request->photo->store('images', 's3');
$path = $request->photo->storeAs('images', 'filename.jpg');

$path = $request->photo->storeAs('images', 'filename.jpg', 's3');

If you do not want a file name to be automatically generated, you may use the storeAs method.

Files: Storing Uploaded Files — Structure map

Clickable & Draggable!

Files: Storing Uploaded Files — Related pages: