How mutateFormDataBeforeFill get the data?

Hi, I create a custom component as I say you few days ago. And I set a select inside.

Component view:
{{ $getSelectComponent() }}


Component controller:
public function getSelectComponent(): ComponentContainer
    {
        return ComponentContainer::make($this->getLivewire())
            ->parentComponent($this)
            ->components([
                Select::make(Str::slug($this->heading.' status'))->options($this->options)
            ]);
    }


The select is printed well, but when I click the save button, the data don't appears in the $data variable of mutateFormDataBeforeFill function of editRecord.

Why can this be? Is it necessary to include this id in a list or simply by being inside the form should it be taken automatically?
Was this page helpful?