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

11. Events and Broadcasting

Sanjib Sinha1 
(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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.