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.
Submit new comments
From the course: Extending Laravel with First Party Packages
Submit new comments
- [Instructor] Alright now welcome back now in part three we are going to be working on actually submitting new comments and this is going to allow us to submit new comments via ajax so that they get saved into our database. But then we're gonna get responses back from our server as part of the ajax request and we also want to use that response to update the DOM instantly so that users can see their new comment instantly. Alright so that's what we're gonna be focusing on in this video. There's a lot to cover to get this to happen so we're gonna be moving pretty quickly. So you may want to pause, rewind, re-watch this video a few times. I'm just kinda warning you ahead of time, there's a lot to cover so we're gonna move quick. Alright let's do it, let's jump into the project. Alright so here we are inside of our host dot show page and we want to start allowing users to submit comments. So the best way to do that is to create a method that we can trigger that will actually post 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)