where('==', 't_hash', '')->each() as $each) { $t_hash = json_encode($each->content); $each->t_hash = $t_hash; if (!$each->save()) { var_dump($each->getErrorMessage()); } } } }