We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When updating JSON
public function update(Request $request, $id) { $program = Program::findOrFail($id)->fill([ 'meta->area' => 'new value' ]); $program->save(); return response()->json($program); }
Returns
{ .... meta : {area : 'old value'}, meta->area : "new area" .... }
It is correctly updating just not replacing the value correctly upon return.
Look at the json value returning .
The text was updated successfully, but these errors were encountered:
I'm pretty sure that meta->area is the wrong syntax. Are you meaning to use dot notation?
meta->area
meta.area ?
meta.area
Sorry, something went wrong.
https://laravel.com/docs/5.3/queries#updating-json-columns
Docs say otherwise
On Wednesday, November 2, 2016, Jordan Hoff notifications@github.com wrote:
I'm pretty sure that meta->area is the wrong syntax. Are you meaning to use dot notation? meta.area ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub #16213 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AB-I7AmmhtjKfQZ5ryXX3lZbv_R9Lcseks5q6CVugaJpZM4KmWbJ .
I'm pretty sure that meta->area is the wrong syntax. Are you meaning to use dot notation? meta.area ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub #16213 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AB-I7AmmhtjKfQZ5ryXX3lZbv_R9Lcseks5q6CVugaJpZM4KmWbJ .
@lukepolo working on a fix.
Huh... TIL. Apologies.
No branches or pull requests
Description:
When updating JSON
Returns
It is correctly updating just not replacing the value correctly upon return.
Steps To Reproduce:
Look at the json value returning .
The text was updated successfully, but these errors were encountered: