I'm using Laravel to pass a JSON And storing the request into a model The JSON that I'm passing is of the form
{
"key": "GEnFcIB5UBScbwrM9OfBqYzY0/8=
",
}
But when storing it to the DB, the key is stored as GEnFcIB5UBScbwrM9OfBqYzY0/8=
This is what I get when I dump the request
Request {#42
#json: ParameterBag {#24
#parameters: array:1 [
"key" => "GEnFcIB5UBScbwrM9OfBqYzY0/8="
]
}
...
#content: "{"key":"GEnFcIB5UBScbwrM9OfBqYzY0/8=
"}",
...
}
As you can see the #content is showing the " ", but $request->key discards it and eventually is not saved in the DB
Any suggestions?