Courses

Re-creating Booking.com API with Laravel and PHPUnit

"Unplanned" Bug; Fixing Limitation Query

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

This will be kind of an "offtopic" lesson: I realized I introduced a bug quite a long time ago, and decided to dedicate a full separate lesson about not only how to fix it, but how to properly write tests.

Remember in the property search lesson I realized that we need to return one apartment per property? I fixed it like this, by using take(1). Well, "fixed", I will show you why this approach is incorrect...

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