Skip to content

Commit 8adaaa5

Browse files
committed
full array from livewire
1 parent c4dfb88 commit 8adaaa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/Wireable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ trait Wireable
1111
public static function fromLivewire($value)
1212
{
1313
if (is_array($value)) {
14-
json_decode(json_encode($value), true);
14+
$array = json_decode(json_encode($value), true);
1515

16-
return new static($value);
16+
return new static($array);
1717
}
1818

1919
if (is_object($value) && method_exists($value, 'toArray')) {

0 commit comments

Comments
 (0)