From 348ff3123ea5e72674c710bc18218816b76fda09 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 3 Feb 2019 14:49:47 -0700 Subject: [PATCH] Update StatusHashtag model --- app/StatusHashtag.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/StatusHashtag.php b/app/StatusHashtag.php index 3d15b2036..0f9e1a5fc 100644 --- a/app/StatusHashtag.php +++ b/app/StatusHashtag.php @@ -7,4 +7,14 @@ use Illuminate\Database\Eloquent\Model; class StatusHashtag extends Model { public $fillable = ['status_id', 'hashtag_id']; + + public function status() + { + return $this->belongsTo(Status::class); + } + + public function hashtag() + { + return $this->belongsTo(Hashtag::class); + } }