How to make inline repeater's content show up in preview/revision mode?
Client facing website;
11 Replies
But on admin preview mode:
How is your repeater stored? JSON? HasMany relationship? How are you accessing it when rendering your frontend?
the block's code
resources/views/components/twill/blocks/header.blade.php
:
remove parenthesis after children
https://twillcms.com/docs/form-fields/repeater.html#content-inline-repeater
The same way as described in the doc
And ->get()
let me try
Perfect, thankyou! TIL
in the preview relationship are hydrated, so if you add parenthesis Laravel makes a query in the database instead of using already loaded relationships
i see it now, i dd()'ed both
@ifox.dev thankyou once again