浏览代码

Update Story model, hide json attribute by default

Daniel Supernault 5 年之前
父节点
当前提交
de89403c41
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Story.php

+ 2 - 0
app/Story.php

@@ -30,6 +30,8 @@ class Story extends Model
 
 	protected $visible = ['id'];
 
+	protected $hidden = ['json'];
+
 	public function profile()
 	{
 		return $this->belongsTo(Profile::class);