Skip to content

ClearActivationCommand ​

php
final class Zairakai\LaravelDevTools\Console\Commands\Auth\ClearActivationCommand extends Command

Command to clear expired activation codes from the database.

Features:

  • Deletes activations older than X days
  • Optionally forces deletion without confirmation
  • Cleans up old soft-deleted records (deleted_at)

Source: src/Console/Commands/Auth/ClearActivationCommand.php

Methods ​

__construct() ​

php
public function __construct()

Capture the current timestamp at instantiation for consistent expiry calculations.

__invoke() ​

php
public function __invoke(): void

handle() ​

php
public function handle(): void

Execute the command.

isolationLockExpiresAt() ​

php
public function isolationLockExpiresAt(): DateTimeInterface|DateInterval

Set isolation lock expiry (Laravel 10+).

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.