Final exercise for the series. In this exercise you are expected to build the back-end part for the dashboard page. Front-end is provided for you along with controller & service methods. The exercise has 2 parts + bonus:
Part 1: Fill in the methods that return hardcoded data & return the real data in the same format
Part 2: Seed your transactions table with 100k or even more transaction records & test dashboard. Look out for N+1 problems & see if you can fix them. You can also add caching to cache some of that data & improve performance.
Part 3 (Bonus): Add date filters in dashboard either via date pickers or month/year drop downs. Pass this to controller & use it to filter data based on the given dates.
Good luck!
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
Part 1: Fill in the methods that return hardcoded data & return the real data in the same format
Part 2: Seed your transactions table with 100k or even more transaction records & test dashboard. Look out for N+1 problems & see if you can fix them. You can also add caching to cache some of that data & improve performance.
Part 3 (Bonus): Add date filters in dashboard either via date pickers or month/year drop downs. Pass this to controller & use it to filter data based on the given dates.
Good luck!
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
- Category
- Program With Gio
- Tags
- php8 tutorial, php course, learn php the right way

Be the first to comment