Selaa lähdekoodia

Update User model

Daniel Supernault 6 vuotta sitten
vanhempi
commit
492410a287
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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;