Browse Source

Update HashtagFollow model, add hashtag relation

Daniel Supernault 6 years ago
parent
commit
9805cd841f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/HashtagFollow.php

+ 5 - 0
app/HashtagFollow.php

@@ -11,4 +11,9 @@ class HashtagFollow extends Model
     	'profile_id',
     	'hashtag_id'
     ];
+
+    public function hashtag()
+    {
+    	return $this->belongsTo(Hashtag::class);
+    }
 }