How to properly access relation data in ViewField
Hi, i am using a standalone form builder,
i have below ViewField
and this is the component :
it work if there is relation data for bin but it will throw below error in console if no relation data
4 Replies
dot syntax does not work, you should just wrap it in any layout component
doesnt need to be a fieldset
thanks, is there any read only field like placeholder that accept dot syntax ?
Placeholder::make('name')->content(fn ($record) => $record->relationship->column)