nova-flexible-content
nova-flexible-content copied to clipboard
HasOne error
Hi,
I am getting this error Call to protected method Whitecube\NovaFlexibleContent\Layouts\Layout::relationLoaded() from scope Laravel\Nova\Fields\HasOne
When trying to add a HasOne field to Flexible like so:
public function fields(NovaRequest $request)
{
return [
ID::make()->sortable(),
Flexible::make('Sequence')->fullWidth()
->addLayout('Email Prop', 'email_single', [
HasOne::make('Contact'),
Text::make('Subject'),
Markdown::make('Email Body'),
Number::make('Delay Days'),
Number::make('Delay Hours'),
])->addLayout('SMS Prop', 'sms_single', [
Textarea::make('Message'),
Number::make('Delay Days'),
Number::make('Delay Hours'),
]),
];
}
Thank you!