file('avatar'); throw_unless($file instanceof UploadedFile, UnexpectedValueException::class, 'Expected an uploaded avatar.'); return $file; } }