Skip to content

Commit

Permalink
Update LaracashNovaField.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nicko170 authored Aug 11, 2021
1 parent 0f54eea commit e93693b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaracashNovaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public function __construct($name, $attribute = null, $resolveCallback = null)
parent::__construct($name, $attribute, $resolveCallback);
$this->displayUsing(fn(Money|null $value) => $value ? formatMoneyAsCurrency($value) : '')
->resolveUsing(fn(Money|null $value) => $value ? formatMoneyAsCurrency($value) : '')
->fillUsing(fn($request, $model, $attribute) => $model->$attribute = Laracash::parser()->parseIntlCurrency($request->$attribute));
->fillUsing(fn($request, $model, $attribute) => $model->$attribute = $request->$attribute ? Laracash::parser()->parseIntlCurrency($request->$attribute) : null);
}
}

0 comments on commit e93693b

Please sign in to comment.