Explorar el Código

Update HashtagFollow model, add hashtag relation

Daniel Supernault hace 6 años
padre
commit
9805cd841f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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);
+    }
 }