Courses

Re-creating Booking.com API with Laravel and PHPUnit

Filter Properties by Most Popular Facilities

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

Now we're getting to the facility filtering. Imagine you search for a property, you have a list, and then you want to have additional filters: swimming pool, pets allowed, etc.

Property search top facilities


Goals of This Lesson

  • Create a DB Structure for Property Facilities
  • Build a list of the most popular facilities - two ways
  • Restructure search results to include facilities
  • Property filter by facility

By the end of this lesson, we will have this test passing in Terminal:

Property search filter by facilities test


New "Type": Property Facilities

Browsing through Booking.com, I realized one more thing: these are all facilities, but they don't belong to the apartments. There are also property facilities, more global things like parking, non-smoking areas, etc...

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