1
0
Daniel Supernault 6 жил өмнө
parent
commit
d39947ed08
1 өөрчлөгдсөн 10 нэмэгдсэн , 1 устгасан
  1. 10 1
      app/StatusHashtag.php

+ 10 - 1
app/StatusHashtag.php

@@ -6,7 +6,11 @@ use Illuminate\Database\Eloquent\Model;
 
 class StatusHashtag extends Model
 {
-    public $fillable = ['status_id', 'hashtag_id'];
+    public $fillable = [
+    	'status_id', 
+    	'hashtag_id', 
+    	'profile_id'
+    ];
 
 	public function status()
 	{
@@ -17,4 +21,9 @@ class StatusHashtag extends Model
 	{
 		return $this->belongsTo(Hashtag::class);
 	}
+
+	public function profile()
+	{
+		return $this->belongsTo(Profile::class);
+	}
 }