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.
3 Replies
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
I'll look into it, thanks :D
I just used
mutateFormDataBefore...
, works perfectly, thank you for the help tough :D