F
Filament22h ago
Maxi

Save a form as one json object (to one field) without dot notations?

Basically this: https://v2.filamentphp.com/tricks/scoping-form-data-to-json-columns But instead of TextInput::make('json_field.name'), it's just TextInput::make('name'), and the "json_field" is basically the whole form so my model only needs 1 JSON field to save the whole form data.
Filament
Storing form data to JSON columns by Maazin - Tricks - Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Solution:
I'll look into it, thanks :D
Jump to solution
3 Replies
LeandroFerreira
LeandroFerreira21h ago
maybe using accessor/mutator ?
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Solution
Maxi
Maxi21h ago
I'll look into it, thanks :D
Maxi
MaxiOP17h ago
I just used mutateFormDataBefore..., works perfectly, thank you for the help tough :D
Want results from more Discord servers?
Add your server