소스 검색

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');
+    }
 }