浏览代码

Update UserFilter model

Daniel Supernault 6 年之前
父节点
当前提交
261e95e772
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/UserFilter.php

+ 5 - 1
app/UserFilter.php

@@ -21,7 +21,6 @@ class UserFilter extends Model
     		->pluck('filterable_id');
     }
 
-
     public function blockedUserIds($profile_id)
     {
     	return $this->whereUserId($profile_id)
@@ -29,4 +28,9 @@ class UserFilter extends Model
     		->whereFilterType('block')
     		->pluck('filterable_id');
     }
+
+    public function instance()
+    {
+        return $this->belongsTo(Instance::class, 'filterable_id');
+    }
 }