Lorey
Explore posts from serversI want to separate my forms from my database structure.
I'm using the form components for my app and want to focus the structure of the forms mostly on "ux".
I don't want my database to dictate how my forms should look, and i don't want my forms dictating my database structure.
I would love to separate these data structures and user spatie/laravel-data to map the form data to DTO's and then to DB models.
Having tried this it feels like a lot of work to seam these together, especially when using FileUpload fields and having to think about refilling them with the proper data.
Am i doing the right thing here?
1 replies