Closed kaareloun closed 2 years ago
Allows duplicate keys in collectAndReplaceUsing, so you can do this in your template without worrying about duplicates. Currently it will throw exception on duplicates
return $this->collectAndReplaceUsing($page->data ?? [], [ ...BlockOne::mediaPaths(), ...BlockTwo::mediaPaths(), ], Media::class, fn ($image) => ThumborImage::make($image));
Allows duplicate keys in collectAndReplaceUsing, so you can do this in your template without worrying about duplicates. Currently it will throw exception on duplicates