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

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…

Contents