Courses

Creating a Quiz System with Laravel 10 + Livewire 3: Step-by-Step

Saving Quiz/Test Results

Now that user can take quizzes we need to save results in the DB which we will do in this tutorial.

For this we will need two Eloquent Models:

  • Test where we will save information about user, which test (another word for "quiz" but it's broader) he took, how much time it took him.
  • TestAnswer where we will store the information about which answers user chose during the quiz.

The full lesson is only for Premium Members.
Want to access all 18 lessons of this course? (81 min read)

You also get:

  • 69 courses (majority in latest Laravel 11)
  • Premium tutorials
  • Access to repositories
  • Private Discord