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 4.3.0 , built from 0bcdf31 on 4.3.0 by pipeline #2936310886 on 2026-10-11.