Closed richardhulbert closed 3 months ago
So it looks from your logs like the event is being fired.
You could then called $event->media->model->doSomeAction()
which would call the doSomeAction
function against your MediaStore.
Alternatively, if you truly mean broadcasting as in websockets, then make MediaStore Notifiable and send a notification to it. Then anyone listening to that channel who can subscribe will be notified.
Discussed in https://github.com/spatie/laravel-medialibrary/discussions/3678