Skip to main content

In this tutorial, we'll add a new page called "Leaderboard" to show the top 100 results. Also, we'll let users choose which quiz to show.

quiz select input

For this, we need another Livewire component.

php artisan make:livewire Front/Leaderboard

First, let's show leaderboard and later we will add ability to select quiz. For the query we will need to access question_quiz pivot table. For this we'll create a model....

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 09 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

JB
jerome borg ✓ Link copied!

Hye Povilas, thanks for you work. The content of his lesson is doubled.

PK
Povilas Korop ✓ Link copied!

Well noticed, thanks! Fixed now.

HM
Hossam Mohamed ✓ Link copied!

still doubled , good work

K
kylemabaso ✓ Link copied!

Hi Povilas. Thanks for the awesome lessons. I have a leaderboard and it shows 4 / 3 (time: 2:24 minutes). May you please elaborate on the idea behind the logic that returns this?

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.