Courses

[NEW] NativePHP: Build Mobile App with Laravel

API Endpoints to Manage Events

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

Link to the repository

[Only for premium members]

Let's build the last API endpoints for our application:

  • Events List - Filtered by attendance status
  • Event Details - Loading all Event information
  • Event Attendance routes - Marking the Event as "Attending" or "Not Attending"
  • Talk Attendance routes - Marking the Talk as "Attending" or "Not Attending"

Let's quickly review what we have.


Event List

First, we'll start with our Events List. We want to have a few features there:

  • Filter by the type - Attending, Future Events, Past Events, Upcoming (within 30 days)
  • Pagination
  • Laravel API Resource formed a response

So let's look at the code:

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

You also get:

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