浏览代码

Update StatusHashtag

Daniel Supernault 6 年之前
父节点
当前提交
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
 class StatusHashtag extends Model
 {
 {
-    public $fillable = ['status_id', 'hashtag_id'];
+    public $fillable = [
+    	'status_id', 
+    	'hashtag_id', 
+    	'profile_id'
+    ];
 
 
 	public function status()
 	public function status()
 	{
 	{
@@ -17,4 +21,9 @@ class StatusHashtag extends Model
 	{
 	{
 		return $this->belongsTo(Hashtag::class);
 		return $this->belongsTo(Hashtag::class);
 	}
 	}
+
+	public function profile()
+	{
+		return $this->belongsTo(Profile::class);
+	}
 }
 }