From the course: Extending Laravel with First Party Packages
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Listening to the event
From the course: Extending Laravel with First Party Packages
Listening to the event
- [Instructor] Alright so it's time to go ahead and finish up this section by putting all of the pieces together. So this should be a lot of fun. We are going to start by listening to the event, we're gonna learn how to trigger the event, and how to prevent duplication in the DOM. So wrapping up a lot of portions in this video. So we're gonna start off by listening to the event in our channel and we'll show you guys how to do that and how we can set all the users up to listen to the event. Then we're going to update the DOM in order to display a new event or a new comment to the users. We'll make sure to prevent duplication in the DOM, and then I also wanna show you how you can customize the payload for security reasons so that we only pass what's absolutely important for our request. Alright so here we are back inside of our new comment. And this is where you're kind of setting everything up. At this point basically everything will work. Now the one thing I wanna mention is that as…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Configure and install Laravel Echo10m 15s
-
(Locked)
Set up a Pusher account3m 59s
-
(Locked)
Create a blog comments system7m 53s
-
(Locked)
Create a presence channel for blog posts8m 31s
-
(Locked)
Listen to an Echo channel and upgrade room count6m 33s
-
(Locked)
Add authentication to the presence channel10m 41s
-
(Locked)
Accessing subscriber information within a presence channel9m 38s
-
(Locked)
Live updating comments8m 3s
-
(Locked)
Getting all comments11m 41s
-
(Locked)
Submit new comments9m 25s
-
(Locked)
Debugging comment submissions8m 27s
-
(Locked)
Creating an event for new comments8m 54s
-
(Locked)
Listening to the event13m 7s
-
(Locked)