Vazaios
Custom Livewire component that sets a new item to the repeater component inside the resource's form
I managed to do something with that using event & listeners.
Basically I dispatch an event $this->dispatch('scannedQrcode', $qrcode);
and then on the CreteOrder page (the create page of your resource)
I listen for that event
#[On('scannedQrcode')]
public function addScannedProduct($qrcode)
{
// your logic
}
3 replies