Explorar o código

Update UserFilter model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
261e95e772
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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');
+    }
 }