Explorar o código

Update Story model, hide json attribute by default

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
de89403c41
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);