Browse Source

Update User model

Daniel Supernault 6 năm trước cách đây
mục cha
commit
492410a287
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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;