Skip to content

Commit cc1641e

Browse files
committed
Update CurrencyCast to turn into associative array
1 parent 32b5341 commit cc1641e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CurrencyCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CurrencyCast implements CastsAttributes
2323
*/
2424
public function get($model, $key, $value, $attributes)
2525
{
26-
$data = json_decode($value);
26+
$data = json_decode($value, true);
2727

2828
return Money::ofMinor(
2929
Arr::get($data, 'amount'),

0 commit comments

Comments
 (0)