JSON relationship column in table
I have a table with a JSON column, like this:
In my model, I cast it as an array:
And in my resource table,
Using tinker, the column is saved on my table like this:
How should I define my relationship such that the resource table shows the name of the users? I havent used relationships that much so Im a bit confused
In my model, I cast it as an array:
And in my resource table,
Using tinker, the column is saved on my table like this:
How should I define my relationship such that the resource table shows the name of the users? I havent used relationships that much so Im a bit confused