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.

Getting ready

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…

  1. Get pusher info, go to, and sign up.
  2. Then, ...

Get Laravel 5.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.