Courses

NativePHP: Build Mobile App with Laravel

Screen for My Events: Upcoming / Attending / Past

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

Link to the repository

[Only for premium members]

The final page that we want to add at this stage is - Events list:

This will include all three of our filters:

  • Upcoming Events
  • Attending Events
  • Past Events

And all of them will use the same Livewire component, with different API filters applied.


Building Events List Page

To start with our page, we need a new Component:

php artisan make:livewire Events/Index

Then, we can add our code to the Index Class containing:

  • Pagination Logic
  • Filter parameter
  • API Call with Pagination and Filter applied
  • Dynamic Title based on the Filter

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