Support the ongoing development of Laravel.io →
Configuration Database Architecture

Hello y'all! I was wondering how can I store data from a dynamic form, which might have 10 variables or 100 depending on the user, and still take advantage of the relational database abilities of Laravel? Usually I would just serialize the form but that seems like it would be wasting a lot of Laravel's potential. Any and all thoughts on this would be greatly appreciated! Thank y'all so much!

Last updated 2 years ago.
0

Have you thought about saving in JSON format?

You may also check polymorphic relations from:

http://laravel.com/docs/eloquent#polymorphic-relations

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.