diff --git a/src/Fields/Image.php b/src/Fields/Image.php index c81c6e7..24a4cad 100644 --- a/src/Fields/Image.php +++ b/src/Fields/Image.php @@ -30,6 +30,10 @@ class Image extends Field implements DeletableContract */ protected function fillAttributeFromRequest(NovaRequest $request, $requestAttribute, $model, $attribute) { + if (! $request[$requestAttribute]) { + return; + } + $request->validate([ $requestAttribute => 'image' ]);