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.
Create a presence channel for blog posts
From the course: Extending Laravel with First Party Packages
Create a presence channel for blog posts
All right, so welcome back, guys. It's time to actually start playing with Laravel Echo. So that's what we're gonna do in this video, is actually start working with Laravel Echo. So that should be a lot of fun. This video's gonna focus around working, kinda getting used to working with channels. Before we actually start creating advanced events, and API things, and all sorts of stuff like that, I want to start off where we just work with channels, and understand how Echo works, and then we'll get into some of the more complex examples. So what we're gonna create this time is actually something really cool, and it's called a presence channel. So the presence channel is going to show us how many people are also subscribed in the same channel that we are. So we're gonna use Echo in this video to subscribe to this presence channel, we're gonna configure it to show how many other users are also reading the same blog post that we are. So when we go to read a blog post, it's gonna say, you…
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)