Browse Source

Update User model, fix filter relationship

Daniel Supernault 5 năm trước cách đây
mục cha
commit
5a0c295ed1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/User.php

+ 1 - 1
app/User.php

@@ -65,7 +65,7 @@ class User extends Authenticatable
 
     public function filters()
     {
-        return $this->hasMany(UserFilter::class);
+        return $this->hasMany(UserFilter::class, 'user_id', 'profile_id');
     }
 
     public function receivesBroadcastNotificationsOn()