阻止 Laravel 模型 cast 为 json 或 array 时进行 Unicode 转义
有时将类型设为 json 或 array 后保存,数据库表中会自动以 Unicode 转义的形式存储。 这倒不是什么坏事,但如果经常需要通过数据库工具查看或搜索, 存储内容经过 Unicode 转义后,会带来不少不便。 所以我会设置对应的 setAttribute。
GGAMI
public function setTagsAttribute($value)
{
$this->attributes['tags'] =