diff --git a/src/Illuminate/Redis/Limiters/DurationLimiter.php b/src/Illuminate/Redis/Limiters/DurationLimiter.php index 0cd555217145..55e506b24ff8 100644 --- a/src/Illuminate/Redis/Limiters/DurationLimiter.php +++ b/src/Illuminate/Redis/Limiters/DurationLimiter.php @@ -99,9 +99,9 @@ public function block($timeout, $callback = null) */ public function acquire() { - $results = $this->redis->command('eval', [ - $this->luaScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks, - ]); + $results = $this->redis->eval( + $this->luaScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks + ); $this->decaysAt = $results[1];