Courses

Re-creating Booking.com API with Laravel and PHPUnit

Make Bookings and View/Cancel Them

You're reading a FREE PREVIEW of a PREMIUM course.

We're finally at the point when we can make bookings, yay.


Goals of This Lesson

  • Booking DB Model/Migration
  • API endpoint & first successful booking
  • Calculating the total price of booking
  • Validation: apartment capacity and availability
  • Viewing and canceling user's bookings

As usual, covered by tests, so by the end of this lesson, we will have these tests passing:


Booking DB Model/Migration

First, the database structure for that...

The full lesson is only for Premium Members.
Want to access all 23 text lessons of this course? (224 min read)

You also get:

  • 77 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord