In this second part of the tutorial we will see how to create the shopping cart for our e-shop. The cart will be associated to the customer and stored into the database. Using this approach a customer that will leave our shop and come back after some time will found his cart as he left it.
In this tutorial series we are going to build a simple but complete digital goods e-shop using Laravel 5.1. The shop will sell only digital articles in a zipped file format, downloadable by the customer once the order and the payment is done. It will be something like ThemeForest or other site where you can buy files.
In this part of the tutorial series we will see how to create a page where, after the reservation has been made, the customer can pay it. Laravel itself come with a module to directly integrate with Stripe, it’s name is Cashier. Stripe is an online credit card payment system where, after a simple registration, you can start receiving payment via credit card using some exposed API and pay a little commission to it.
In the first two parts of this tutorial we created the backend of the application where the hotel owner can create room types and assign it a price for a certain dates. Now we need a final user interface where the customers can search a room and check for availability and finally book it.
In the first part of this tutorial series we created a basic Laravel application with all the data model needed for the application and a basic first controller to insert new room type. As we said at begin the frontend of the booking engine will be an AngulaJS single page application divided in two section, one for the final user and another for the hotel administration.