Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Screen for My Events: Upcoming / Attending / Past

Premium
9 min read

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 of our courses? (31 h 16 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

No comments yet…