© Sanjib Sinha 2019
Sanjib SinhaBeginning Laravel https://doi.org/10.1007/978-1-4842-4991-8_11

11. Events and Broadcasting

Sanjib Sinha
(1)
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.

What Are Events and Broadcasting?

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. ...

Get Beginning Laravel : Build Websites with Laravel 5.8 now with O’Reilly online learning.

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