I recently wrote an article about building an online system to book lessons with a driving instructor. [...] Cookery classes usually have a very well-defined limit on the number of students — you can only really teach as many people as you have cooking stations or cookers. That’s going to be the theme of this article — managing those “slots” in a cookery class. The principles remain the same for all sorts of other forms of tuition.
As before, we’re going to take advantage of Acuity Scheduling in order to manage bookings for our classes, and everything that entails.
First he walks you through exactly what he'll guide you through building and a real world scenario where it might be used. Next he shows how to set up an account on Acuity, create appointment types and get the credentials for the API integration. From there he gets into the implementation:
- Creating a new Lumen project
- installing the PHP SDK from Acuity
- Getting a list of available class times and showing the list in a view
- Setting up the booking form and handling the submit
This last step includes reaching out to the Acuity API and submitting the information for the appointment. It's not tracked on the application's side opting to use the Acuity service as a source of record.