subDays($retentionTime)->format('Y-m-d H:i:s'); AuthLog::where('login_at', '<', $date) ->orWhere('logout_at', '<', $date) ->delete(); Log::info('Authentication log purged'); $this->components->info('Authentication log purged successfully.'); } }