From 72514317080d51e20b7705c4b1bf080636ccfbec Mon Sep 17 00:00:00 2001 From: jameslkingsley Date: Mon, 10 Sep 2018 09:01:21 +0100 Subject: [PATCH] Close #3 --- src/Fields/Image.php | 4 ++++ 1 file changed, 4 insertions(+) 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' ]);