Update Story Model

pull/793/head
Daniel Supernault 6 years ago
parent c25ca8dc99
commit ae78addab4
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save