Timer System
Timer Components
Timer Workflow
// Setting timer
$duration = 'PT2H'; // ISO 8601 duration format
Cache::put('curtain:timer', Carbon::now()->add($duration));
// Checking timer
$endTime = Cache::get('curtain:timer');
if ($endTime && Carbon::now()->gte($endTime)) {
// Disable maintenance mode
$this->disable();
}Timer Features
Last updated