Forráskód Böngészése

Update RateLimit trait

Daniel Supernault 6 éve
szülő
commit
880c8e8a71
1 módosított fájl, 15 hozzáadás és 0 törlés
  1. 15 0
      app/Util/RateLimit/User.php

+ 15 - 0
app/Util/RateLimit/User.php

@@ -68,4 +68,19 @@ trait User {
 	{
 		return 100;
 	}
+
+	public function getMaxCollectionsPerHourAttribute()
+	{
+		return 10;
+	}
+
+	public function getMaxCollectionsPerDayAttribute()
+	{
+		return 20;
+	}
+
+	public function getMaxCollectionsPerMonthAttribute()
+	{
+		return 100;
+	}
 }