I'm trying to figure out how to add a custom form field inside a custom block. I have managed to get the vue component to render correctly, however it is not saving the input. CustomBlock.php:
public function getForm(): Form { return Form::make([ BladePartial::make()->view('twill.partials.form._text_area') ->withAdditionalParams([ 'label' => 'Text area', 'name' => 'text_area', ]), ]); }
public function getForm(): Form { return Form::make([ BladePartial::make()->view('twill.partials.form._text_area') ->withAdditionalParams([ 'label' => 'Text area', 'name' => 'text_area', ]), ]); }
From what I can see the push to vuexStore never happens, my guess is that using BladePartial to add a form input is not the right way. What am I missing, or what's the right way to achieve this?