Browse Source

Update StoryReaction model

Daniel Supernault 6 years ago
parent
commit
d5bb6626b3
2 changed files with 8 additions and 5 deletions
  1. 4 4
      app/StoryItem.php
  2. 4 1
      app/StoryReaction.php

+ 4 - 4
app/StoryItem.php

@@ -6,8 +6,8 @@ use Illuminate\Database\Eloquent\Model;
 
 class StoryItem extends Model
 {
-    public function story()
-    {
-    	return $this->belongsTo(Story::class);
-    }
+	public function story()
+	{
+		return $this->belongsTo(Story::class);
+	}
 }

+ 4 - 1
app/StoryReaction.php

@@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model;
 
 class StoryReaction extends Model
 {
-    //
+	public function story()
+	{
+		return $this->belongsTo(Story::class);
+	}
 }