ソースを参照

Update User model, fix filter relationship

Daniel Supernault 5 年 前
コミット
5a0c295ed1
1 ファイル変更1 行追加1 行削除
  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()