瀏覽代碼

Update StoryReaction model

Daniel Supernault 6 年之前
父節點
當前提交
d5bb6626b3
共有 2 個文件被更改,包括 8 次插入5 次删除
  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);
+	}
 }