Appearance
ClearActivationCommand
php
final class Zairakai\LaravelDevTools\Console\Commands\Auth\ClearActivationCommand extends CommandCommand 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(): voidhandle()
php
public function handle(): voidExecute the command.
isolationLockExpiresAt()
php
public function isolationLockExpiresAt(): DateTimeInterface|DateIntervalSet isolation lock expiry (Laravel 10+).