Map form or table to a JSON column
EmilMoe opened this issue · 2 comments
EmilMoe commented
- Laravel Version: 10.10
- PHP Version: 8.2.9
- Splade JS Version (npm): 1.4.8
- Splade PHP Version (composer): 1.1
- Dev environment (OS, Sail/Valet/etc): Herd
Description:
I want to connect my components and tables to a column in the database that is a JSON column. I haven't found any hints on how to do so.
I use it to keep multiple languages of ie a name.
Steps To Reproduce Issue:
I tried this, but that's not working
<x-splade-input :name="name['en']"..
EmilMoe commented
Didn't work
EmilMoe commented
This seems to have solved it
<x-splade-input
name="name[]"
v-model="form.name.en"
label="Name (EN)"
/>