protonemedia / laravel-splade

💫 The magic of Inertia.js with the simplicity of Blade 💫 - Splade provides a super easy way to build Single Page Applications (SPA) using standard Laravel Blade templates, and sparkle it to make it interactive. All without ever leaving Blade.

Home Page:https://splade.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map form or table to a JSON column

EmilMoe opened this issue · comments

  • 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']"..

Didn't work

This seems to have solved it

<x-splade-input
        name="name[]"
        v-model="form.name.en"
        label="Name (EN)"
/>