Re-creating API with Laravel and PHPUnit

Now it's time to take care of the photos for the properties. Each property may have multiple photos, assign order position to them, and one of them should be marked "main". Simple, right?

Goals of This Lesson

  • Add photo upload feature with Spatie Laravel Media Library package
  • Endpoint to reorder the photos
  • Show photos in search results and property detail endpoints

By the end of this lesson, we will have this list of photos returned in Postman:

Preparing For Photo Upload

Personally, I'm a big fan of the package spatie/laravel-medialibrary to manage images. So we will try to use exactly that one...

This lesson is only for Premium Members.
Want to access all lessons of this course?

You also get:

  • 59 courses (1057 lessons, 42 h 44 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord