We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af0565 commit 4068b48Copy full SHA for 4068b48
src/Illuminate/Cache/DatabaseLock.php
@@ -4,6 +4,7 @@
4
5
use Illuminate\Database\Connection;
6
use Illuminate\Database\QueryException;
7
+use Illuminate\Support\Carbon;
8
9
class DatabaseLock extends Lock
10
{
@@ -92,7 +93,7 @@ public function acquire()
92
93
*/
94
protected function expiresAt()
95
- return $this->seconds > 0 ? time() + $this->seconds : now()->addDays(1)->getTimestamp();
96
+ return $this->seconds > 0 ? time() + $this->seconds : Carbon::now()->addDays(1)->getTimestamp();
97
}
98
99
/**
0 commit comments