Maybe this will be an stupid question. But when I want to validate an nullable image I don't get anything.
This is in my FormRequest
'image' => 'nullable|image',
So when I upload an image I get an UploadeFile what I expect. But when I don't upload an file, I don't get nothing. The value image is not in the $validated in my controller. But I expect an null value.
What did I do wrong?
So when I do it for example with an text field like this
'retentiontime' => 'nullable|string',
When I submit the form I get in the validated request an null value for retentiontime. But for an image It is nothing. Or is it just not possible for an image
@Snapey If I there is an image uploaded, then there is an image before validation. If I don't upload an image, then there is totally nothing of an value for image before validation