浏览代码

Update HashtagFollow model, add hashtag relation

Daniel Supernault 6 年之前
父节点
当前提交
9805cd841f
共有 1 个文件被更改,包括 5 次插入0 次删除
  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);
+    }
 }