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.
Listen to an Echo channel and upgrade room count
From the course: Extending Laravel with First Party Packages
Listen to an Echo channel and upgrade room count
- [Instructor] All right, so let's go ahead and continue this video. We're gonna be working in part two, listening to the Echo channel and upgrading the room count. In this vidoe, we're just going to try to subscribe to that room channel, and then update the count as users enter and leave the channel. All right, so here we are back inside of the project. Now, where we left off, we had created the data to start storing the information for our, you know, to do what we want it to do. Now, how do we go ahead and actually start subscribing to a channel? And how do we update it as things change? Well, that's how, where Laravel Echo comes in. So let's go ahead and create a method here. So we're gonna call this methods. And this methods is a, this is a vue.js thing. And so this is where we can define additional methods that we want to be able to use within our application. So we can list all of them here. We're gonna create one called listen. And here, and this is one where, so we can just…
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)