Only until March 18th: coupon LARAVEL12 for 40% off Yearly/Lifetime membership!

Read more here
Courses

Re-creating Booking.com API with Laravel and PHPUnit

Countries, Cities, Geographical Objects

The next thing we'll work on is adding real estate properties: houses/homes to rent. In this particular lesson, we will focus on adding the geographical data for city, country, and latitude/longitude.


Goals of This Lesson

  • Build a DB schema for countries, cities, and geographical objects, seeding a few of each
  • Build a first version of DB schema for properties, with geographical data
  • Automatically set property latitude/longitude based on the address, with Observer and Google Maps API
  • First version of API endpoint to create a property, covered by PHPUnit test

By the end of this lesson, we will see this in Postman:

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

You also get:

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