2 years ago

Storing dynamic columns

Posted 2 years ago by omniware

I need a data model to store and then easily retrieve data using Eloquent for the following scenario.

My User logs in and creates a Custom Form 1 with 3 fields (name, email, dob) and distributes it to his Friends. 15 Friends fill the form 1. My user user creates another Custom Form 2 with 4 Fields (name, email, phone, subject) and distributes to his Teachers. 6 Teachers fill the form 2.

Now my User needs to see the data for

  • Form 1 (having 15 rows and 3 columns)
  • Form 2 (having 6 rows and 4 columns)

What is the best way to deal with dynamic number of columns?

Please sign in or create an account to participate in this conversation.