Currently I'm using Laravel to build some projects (personal); I have no experience with the framework, but a problem appeared, apparently due to MYSQL.
I created a table named tabelateste
and in this table the following columns
Toupdatethecolumnparams
IusedtheupdateaccordingtoLaravelDOC
update(['params->filter'=>$request->input('data')]);
Howevertheerrorisreturned
SQLSTATE[42000]:Syntaxerrororaccessviolation:1305FUNCTION database.json_setdoesnotexist(SQL:update
tabelateste
setparams
=json_set(params
,'$."filter"', 1,2,3) whereaccount
= 18)
I made the same query
generated by Laravel directly at the mysql prompt and returned the same error
FUNCTION database.json_set does not exist
The version of my Mysql is 5.7, the minimum version required by Laravel in Doc.