Support the ongoing development of Laravel.io →
posted 7 years ago

I try to use Model cast make column save data is JSON format automatically, but when save to database show an error "Array to string conversion".

I look at query found wrong query at my JSON data

insert into users SET {"meta":"true"}

Anyone can suggest or help me, please?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ALTELMA altelma Joined 26 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.