PR CI / ledger (pull_request) Successful in 4s
PR CI / flow (pull_request) Successful in 5s
PR CI / test (lowest) (pull_request) Successful in 37s
PR CI / test (stable) (pull_request) Successful in 37s
PR CI / security (pull_request) Successful in 51s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Failing after 4s
21 lines
525 B
PHP
21 lines
525 B
PHP
<?php
|
|
|
|
namespace IriksIT\Manager\Modules\Statistics;
|
|
|
|
use Illuminate\Console\Command;
|
|
use IriksIT\Manager\Models\VisitorSalt;
|
|
|
|
class ForgetVisitorKeys extends Command
|
|
{
|
|
protected $signature = 'manager:forget-visitor-keys';
|
|
|
|
protected $description = 'Delete the keys of past days, so the visitor codes of those days can no longer be traced back';
|
|
|
|
public function handle(): int
|
|
{
|
|
$this->line(sprintf('%d key(s) of past days deleted.', VisitorSalt::forgetOld()));
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|