Quellcode durchsuchen

Update HashtagFollow model, add hashtag relation

Daniel Supernault vor 6 Jahren
Ursprung
Commit
9805cd841f
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      app/HashtagFollow.php

+ 5 - 0
app/HashtagFollow.php

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