From d391b1a2a60d491b28bcece65e06c0c76970a76b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 18 Apr 2018 23:57:24 -0600 Subject: [PATCH] Add new method to Status model --- app/Status.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Status.php b/app/Status.php index dc022937..c62437bd 100644 --- a/app/Status.php +++ b/app/Status.php @@ -42,4 +42,9 @@ class Status extends Model return $this->hasMany(Like::class); } + public function comments() + { + return $this->hasMany(Comment::class); + } + }