diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index c6fee92a6c24..a0b7d2c67033 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -205,7 +205,7 @@ public function put($key, $value, $ttl = null) $seconds = $this->getSeconds($ttl); if ($seconds <= 0) { - return $this->delete($key); + return $this->forget($key); } $result = $this->store->put($this->itemKey($key), $value, $seconds);