diff --git a/src/Synthesizers/EntryCollectionSynthesizer.php b/src/Synthesizers/EntryCollectionSynthesizer.php index c1d1d89..2ea46a3 100644 --- a/src/Synthesizers/EntryCollectionSynthesizer.php +++ b/src/Synthesizers/EntryCollectionSynthesizer.php @@ -40,7 +40,8 @@ public function hydrate($values) $entry = Entry::make() ->id($value['id']) ->slug($value['slug'] ?? null) - ->collection($value['collection'] ?? null); + ->collection($value['collection'] ?? null) + ->data($value['data']); if ($value['date']) { $entry->date($value['date'] ?? null); diff --git a/src/Synthesizers/EntrySynthesizer.php b/src/Synthesizers/EntrySynthesizer.php index e6649df..2fb5fea 100644 --- a/src/Synthesizers/EntrySynthesizer.php +++ b/src/Synthesizers/EntrySynthesizer.php @@ -32,7 +32,8 @@ public function hydrate($value) $entry = Entry::make() ->id($value['id']) ->slug($value['slug'] ?? null) - ->collection($value['collection'] ?? null); + ->collection($value['collection'] ?? null) + ->data($value['data']); if ($value['date']) { $entry->date($value['date'] ?? null);