소스 검색

Add new method to Status model

Daniel Supernault 7 년 전
부모
커밋
d391b1a2a6
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      app/Status.php

+ 5 - 0
app/Status.php

@@ -42,4 +42,9 @@ class Status extends Model
       return $this->hasMany(Like::class);
     }
 
+    public function comments()
+    {
+      return $this->hasMany(Comment::class);
+    }
+
 }