Making Reservation
In this episode we are going to finish the checkout process and and make reservation in our OctoberCMS, Vue and Vuex application.
In the last episode we created a confirmation page for our checkout process. Now we are going to go into OctoberCMS, create a Reservation model, make relations with our Users and Vehicles and create a route that will create the actual reservation using PHP.
After that, in Vue, we are going to create methods that will send collected data to that route and make the reservation. We are also going to learn how to protect that route so that not just anybody can make that reservation.
And unfortunately we are going to run into some trouble, but I will show you how to make it work anyways.
You will need this plugin to make everything work.