1
0
Daniel Supernault 6 жил өмнө
parent
commit
d7d1303a63
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      app/Story.php

+ 7 - 0
app/Story.php

@@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model;
 
 class Story extends Model
 {
+	protected $visible = ['id'];
+	
+	public function profile()
+	{
+		return $this->belongsTo(Profile::class);
+	}
+
 	public function items()
 	{
 		return $this->hasMany(StoryItem::class);