No matter what I do, I cannot save an array of data to a seetings defined as an array. #267
Unanswered
FireOpsPhil
asked this question in
Q&A
Replies: 1 comment
-
I got the same problem. This is happening because when you migrate on your settings table the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry... I posted this as an issue instead of a question. So let's try this again. I apologize in advance. I am completely self taught and just started with PHP/Laravel last year.
I have Laravel-Settings working for a variety of data types, minus arrays. This past week, I tried to add an ARRAY of user ids for the first time. The data is coming to the controller, already formatted as a Json string. If I do a die-dump on the incoming data, it confirms the Json string as follows:
In my settings, I have the following:
In my controller, I am trying to set the value for that setting as follows:
This causes the following error:
If I change my setting to the following
I get the exact opposite error, as if to confirm it is an array:
Is this a bug, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions