Ver Fonte

Update HashtagFollow model, add hashtag relation

Daniel Supernault há 6 anos atrás
pai
commit
9805cd841f
1 ficheiros alterados com 5 adições e 0 exclusões
  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);
+    }
 }