I’m working on a Laravel project where I need to handle and store various types of application data. I have more than 50 application forms. Each form has different types of fields and form repeaters. I have stored all forms’s data into the applications
table’s field name, ‘data’, as JSON.
I had lots of issues while storing images sent through the form repeater. Each form has a multi-nested data format.
What’s the best way to handle dynamic form data and save it properly within a single function in Laravel?
Any guidance or best practices would be greatly appreciated!
1
USE formdata() to store the data beofre passing through json