Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AbdulBazith's avatar

Do I need 6 forms to enter data into 5 tables for online quiz examination?

Guys working with a online quiz examination in laravel. i need to add question and store it in db.

for this i have 5 forms

1)adding education_standards with education name and question_description screenshot:https://imgur.com/nTfr9MB

2)adding class with class name and description screenshot:https://imgur.com/ltUT77W

3)adding subjects with subject name and description screenshot: https://imgur.com/jFJE8Ln

4)adding chapters with subject_id, chapter name and description screen shot: https://imgur.com/FNmLxpP

5)adding topics with subject_id,class_id,chapter_id, topic name name and description screenshot: https://imgur.com/zY7n3kQ

education_standard_id,
class_id,
subject_id,
chapter_id,
topic_id,
levels
question
question_image
optionA
optionA_image
optionB
optionB_image
.
.
.
so on

screen shot: https://imgur.com/piSvG5G

is this right?? my doubt isdo i need 5 forms to add these.

Refer this link for tables structure these forms and then suggest please: https://laracasts.com/discuss/channels/laravel/should-i-change-my-datastructure-specifically-the-questions-table-for-online-examination-by-the-following-tables

0 likes
2 replies
Snapey's avatar

There is no rule that says that a form must be 1:1 with controller and controller 1:1 with model

Create the forms in the best way for the user experience, not your convenience

AbdulBazith's avatar

@snapey thank you for your response.

ya yes i understood. we can create forms in nay mater ans user requirement. but based on tables i am some what confused.

if table relationship changes, i need to change the form right?? i was in full confusion.

Kindly slightly refer my table question link which i provided. and then suggest this pleaseeeee

Please or to participate in this conversation.