Using pusher for live notifications
Pusher is a great service and is a super simple way to start sending messages to the UI from the backend of your application. In this example, I will notify persons in the UI that they have a Favorite series that came out. I will cover setting up a pusher account, setting up Laravel to talk to pusher, and finally setting up Angular to show this message.
I have been building up a site throughout this book and will now plug this into the already built command to trigger the event that I will use to broadcast to pusher and Angular. Make sure you have Laravel freshly installed if you have not made it down to this part of the book.
How to do it…
- Get pusher info, go to https://pusher.com, and sign up.
- Then, ...