Update Story Model

This commit is contained in:
Daniel Supernault 2019-01-12 00:42:26 -07:00
parent c25ca8dc99
commit ae78addab4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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