Daniel Supernault пре 6 година
родитељ
комит
492410a287
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      app/User.php

+ 5 - 0
app/User.php

@@ -62,6 +62,11 @@ class User extends Authenticatable
         );
     }
 
+    public function filters()
+    {
+        return $this->hasMany(UserFilter::class);
+    }
+
     public function receivesBroadcastNotificationsOn()
     {
         return 'App.User.'.$this->id;