Hi, here an example that works, you can adapt to your needs
First a publics array property for dynamics inputs
Backend
public $inputs=[];
public $inputsCount=1;
public function addInput()
{
$this->inputsCount++;
}
public function removeInput()
{
$this->inputsCount–;
}
<form wire:submit.prevent="save">
@for($e=1;$e<=$inputsCount;$e++)
<div class="flex inline-flex items-center w-1/3">
<input name="services" wire:model="inputs.{{$e}}.input1" type="input" class=" w-1/3 border-2 border-gray-300 text-green-500">
<input name="services" wire:model="inputs.{{$e}}.input2" type="input" class=" w-1/3 border-2 border-gray-300 text-green-500">
<input name="services" wire:model="inputs.{{$e}}.input3" type="input" class=" w-1/3 border-2 border-gray-300 text-green-500">
</div>
<br />
@endfor
<x-jet-button wire:click.prevent="addInput">add Input</x-jet-button>
<x-jet-button wire:click.prevent="removeInput">add Input</x-jet-button>
<x-jet-button>Save</x-jet-button>
</form>
// You will get an array with all inputs and values something like
array:3 [▼
1 => array:3 [▼
“input1” => “4”
“input2” => “ttt”
“input3” => “ddd”
]
2 => array:3 [▼
“input1” => “3”
“input2” => “aaa”
“input3” => “aaa”
]
3 => array:3 [▼
“input1” => “fff”
“input2” => “rrr”
“input3” => “tttt”
]
]
that should solve your problem