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.
Live updating comments
From the course: Extending Laravel with First Party Packages
Live updating comments
- [Instructor] Alright everybody, now we are to the last major project that we'll be working on. With Laravel Echo and Broadcasting. And that's to actually create the comments and live update them so that when someone submits a comment, it's visible to everyone else reading that post without doing a page refresh. We already got the other cool stuff, the presents, seeing who's in the room, and how many people are reading, which I think is already pretty cool enough, but we're also going to add live commenting on top of that. So in this video, what we're going to do is we're going to create a comments interface, which we don't actually have yet in our application. That's going to allow users to submit comments, which unfortunately just doesn't exist yet. We're actually going to be submitting them via Ajax so we are going to need to have API tokens for all of our users, so we can set up API authentication. And then we're gonna go through that process, and then we will get all of the…
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)