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

+ 14 - 1
app/Story.php

@@ -6,5 +6,18 @@ use Illuminate\Database\Eloquent\Model;
 
 class Story extends Model
 {
-    //
+	public function items()
+	{
+		return $this->hasMany(StoryItem::class);
+	}
+
+	public function reactions()
+	{
+		return $this->hasMany(StoryReaction::class);
+	}
+
+	public function views()
+	{
+		return $this->hasMany(StoryView::class);
+	}
 }