This commit is contained in:
denisdulici 2018-10-13 17:15:52 +03:00
parent a656c2e0bb
commit 8ed3632685

View File

@ -81,7 +81,7 @@ class Currency extends Model
*/ */
public function getPrecisionAttribute($value) public function getPrecisionAttribute($value)
{ {
if (empty($value)) { if (is_null($value)) {
return config('money.' . $this->code . '.precision'); return config('money.' . $this->code . '.precision');
} }
@ -95,7 +95,7 @@ class Currency extends Model
*/ */
public function getSymbolAttribute($value) public function getSymbolAttribute($value)
{ {
if (empty($value)) { if (is_null($value)) {
return config('money.' . $this->code . '.symbol'); return config('money.' . $this->code . '.symbol');
} }
@ -109,7 +109,7 @@ class Currency extends Model
*/ */
public function getSymbolFirstAttribute($value) public function getSymbolFirstAttribute($value)
{ {
if (empty($value)) { if (is_null($value)) {
return config('money.' . $this->code . '.symbol_first'); return config('money.' . $this->code . '.symbol_first');
} }
@ -123,7 +123,7 @@ class Currency extends Model
*/ */
public function getDecimalMarkAttribute($value) public function getDecimalMarkAttribute($value)
{ {
if (empty($value)) { if (is_null($value)) {
return config('money.' . $this->code . '.decimal_mark'); return config('money.' . $this->code . '.decimal_mark');
} }
@ -137,7 +137,7 @@ class Currency extends Model
*/ */
public function getThousandsSeparatorAttribute($value) public function getThousandsSeparatorAttribute($value)
{ {
if (empty($value)) { if (is_null($value)) {
return config('money.' . $this->code . '.thousands_separator'); return config('money.' . $this->code . '.thousands_separator');
} }