From ae78addab4549038f403a7eb6fb0d6d296b04799 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 00:42:26 -0700 Subject: [PATCH] Update Story Model --- app/Story.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/Story.php b/app/Story.php index 1b581010..9ac755c9 100644 --- a/app/Story.php +++ b/app/Story.php @@ -6,5 +6,18 @@ use Illuminate\Database\Eloquent\Model; class Story extends Model { - // + public function items() + { + return $this->hasMany(StoryItem::class); + } + + public function reactions() + { + return $this->hasMany(StoryReaction::class); + } + + public function views() + { + return $this->hasMany(StoryView::class); + } }