Retrieving Uploaded Files
You may access uploaded files that are included with the IlluminateHttpRequest instance using the file method. The object returned by the file method is an instance of the SymfonyComponentHttpFoundationFileUploadedFile class, which extends the PHP SplFileInfo class and provides a variety of methods for interacting with the file:
You may also determine if a file is present on the request using the hasFile method:
Validating Successful Uploads
In addition to checking if the file is present, you may verify that there were no problems uploading the file via the isValid method: