laravel event not send to pusher
I think the problem is with your event class declaration, you should implement ShouldBroadcastNow
as it fires the event immediately and doesn't require queue implementation. By default you need to set up a queue and then run that queue to fire events.
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;class NewOrder implements ShouldBroadcastNow{ ....do your stuff....}
And also checkout this amazing playlist, this will solve your all problems for sure
I also had this problem for about 2 hours.
You forgot to implement broadcast,
you can either use:
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;class NewOrder implements ShouldBroadcastNow
or
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;class NewOrder implements ShouldBroadcast
The latter then requires a queue driver
Happy coding :)