FileUpload returning string rather than Illuminate\Http\UploadedFile type

Is there a way to define the FileUpload components type? I've seen examples of this and couldn't figure out how they managed to do it
Was this page helpful?