Conditional Broadcasting of Laravel Events
In a recent project using the Laravel framework, I’ve been getting familiar with WebSockets and came up against a situation where I needed to broadcast an event only when a certain property on a model had changed. I couldn’t find this documented anywhere but, after quick dig into the IlluminateEventsDispatcher class, I found the event dispatcher actually […]