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

gust's avatar
Level 1

How to use MultiDimensional Arrays forms with Blade?

I am making a quiz site and would like to make a form for a dynamic number of questions $questions(passed to this form) and for each question there to be one text input(question title) and four text input choices(four question choices) and next to check text a radio button(to determine if this text is correct if checked the value becomes 1)

I've tried to make this functuality with for loops but havent been very successful accessing the arrays and all the tutorials on blade don't show anything similar to this

0 likes
0 replies

Please or to participate in this conversation.