JSON in Database, search for Entry by value in JSON?
Hey there. I have a Model with a field that contains JSON Data. Is there any way to search for an entry which has a specific value inside that JSON Object? So like ::where("something", "anotherValue")->first(); just that it searches for a key inside a JSON field instead of a field?
I don't even know what "rdbms" is. In addition to that, if I would have it all in separate columns, I'd have 3 columns per Platform the User can connect their account with. If that's 20 Platforms, every User would have 60 Columns, just for Account Connections. And as I said, I just don't see why. The solution of @sinnbeck works perfectly fine for me and I don't have any problems.
But that would make everything quite hard. Currently, I get the User and then just get the GitHub Connection Column from it. If I would do it like this, I would have to Find an entry in that Table where the Platform ID, User ID AND key is what I'm searching for...