Skip to main content

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? (30 h 21 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…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.