There was an error while loading. Please reload this page.
1 parent 7dcd17c commit 40c0f6fCopy full SHA for 40c0f6f
src/Illuminate/Cache/RateLimiting/Limit.php
@@ -150,6 +150,8 @@ public function response(callable $callback)
150
*/
151
public function fallbackKey()
152
{
153
- return "attempts:{$this->maxAttempts}:decay:{$this->decaySeconds}";
+ $prefix = $this->key === '' ? '' : "{$this->key}:";
154
+
155
+ return "{$prefix}attempts:{$this->maxAttempts}:decay:{$this->decaySeconds}";
156
}
157
0 commit comments