Veur
Broadcasted Notifications are completed in Horizon, but not received by Reverb
It works when I add the trait
BroadcastsEvents
and the broadcastOn()
method to the OrderCreatedNotification
class:
But this is not documented anywhere in Laravel, so I doubt this really is the correct solution...2 replies
Update Select options after event
@Leandro Ferreira one thing I forgot to mention is that the Select field is a multiple select
->multiple()
And when I remove that, the options are being refreshed using Livewire's $refresh
event. Any idea why it's not working with ->multiple()
?
The solution with dispatchFormEvent()
still won't work btw.24 replies
Update Select options after event
Ok, below is a simplified example:
$fieldsFromDb
is a Collection with fields from the database.
getOptions()
is a method in the FormField model that returns the options for that specific field.
This all works fine, but I don't know how to refresh the list of options.24 replies
Update Select options after event
@Leandro Ferreira yeah, but my form has a lot of Select fields with own options. The options can be edited inside a modal. So, I'm dispatching an event from the modal to the form, but I don't know how to 'refresh' the select component. I tried
$this->dispatch('$refresh');
from the modal, but no luck24 replies