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.

Debugging comment submissions

Debugging comment submissions

- [Instructor] Alright, there was a lot that we had to cover in the last video, so I wanted to go ahead and break it out. We're gonna be talking a lot about debugging. I wanna spend a little bit of time just showing you how to debug Ajax requests and Vue.js components. And so we'll go over that in this video and then we're also going to complete the form submission so that we make that that 100% works before we create an event. Okay, so in the last video we kinda left off where we need to actually trigger this Vue.js component or method that we made called post comments. So, the way that we can trigger these types of events is by setting up event listeners on different elements of the dong. So if we've got a button here and we wanna create an event listener, we can do V dash on to create that event listener in view and then we can do a colon and then tell it which event to listen for and in this case, we wanna do click. Now you can also add additional settings like dot prevent, which…

Contents