Update DiscoverCategory model

This commit is contained in:
Daniel Supernault 2019-02-08 12:27:51 -07:00
parent 41053f417e
commit 8cdf44009b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -29,6 +29,12 @@ class DiscoverCategory extends Model
return $this->media->thumb();
}
public function mediaUrl()
{
return $this->media->url();
}
public function items()
{
return $this->hasMany(DiscoverCategoryHashtag::class, 'discover_category_id');