Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslkingsley committed Sep 10, 2018
1 parent 0d2d25b commit 7251431
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Fields/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]);
Expand Down

0 comments on commit 7251431

Please sign in to comment.