© Sanjib Sinha 2019Sanjib SinhaBeginning Laravel https://doi.org/10.1007/978-1-4842-4991-8_11
11. Events and Broadcasting
Howrah, West Bengal, India
In the previous chapter, you learned how to send e-mails and notifications. In this chapter, you will learn about events and broadcasting, which, at the beginning, may look similar to notifications but are not.
Although the difference between notification and events may not be clear at first, events and notifications have distinct characteristics and are used for different purposes.
To express this difference in one line, you could say that events are for when you need to do something, and notifications are for when something happens in your application. ...