end up using handleRecordCreation(array $data) and mutateFormDataBeforeCreate(array $data)
I wonder why is array $data doesn't contain the detail data from the repeater??
below is my repeater code:
Repeater::make('details')
->label('')
->relationship('details')
->minItems(1)
->validationMessages([
'min' => 'Harus ada minimal 1 data pemesan',
])
->schema([
TextInput::make('details.name')
->label('Nama Pemesan')
->autocapitalize('words')
->minLength(3)
->validationAttribute('Nama pemesan')
->validationMessages([
'min' => ':attribute harus lebih dari 3 karakter',
'required' => ':attribute tidak boleh kosong',
])
->required()
->autofocus(),
])
Repeater::make('details')
->label('')
->relationship('details')
->minItems(1)
->validationMessages([
'min' => 'Harus ada minimal 1 data pemesan',
])
->schema([
TextInput::make('details.name')
->label('Nama Pemesan')
->autocapitalize('words')
->minLength(3)
->validationAttribute('Nama pemesan')
->validationMessages([
'min' => ':attribute harus lebih dari 3 karakter',