1
0
Эх сурвалжийг харах

Add new method to Status model

Daniel Supernault 7 жил өмнө
parent
commit
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);
+    }
+
 }