Преглед изворни кода

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);
+    }
 }