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

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…

Contents