Laravel 5.5 Eloquent JSON update is invalid

< H1 > references < / H1 >

https://laravel-china.org/top.

< H1 > question background < / H1 >

Larvale and MySQL versions:

Laravel 5.5
MySQL 5.7.22

migration: ext is in json format:

>>> $sample->update(["ext->hello"=>"nihao"]);

the database update does not take effect? What"s the problem with the gods?


has found the answer. Looks like a Laravel bug

similar questions:

https://laracasts.com/discuss.

Eloquent should be written as:

$sample->update(['ext.hello'=>'world2']);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaa531-5cde4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaa531-5cde4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?