Преглед изворни кода

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);