I have never used a callback in conjunction with the update method, in fact, I didn’t even know this option existed
But the reason why it doesn’t work is because if you use a callback, you have to pass your variable to the callback using the use
statement.
$p->update([
'palabras' => function($palabras) use($palabra) {
return $palabras . ',' . $palabra;
}
], 'es');