소스 검색

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);
+	}
 }