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;
|
|
}
|
|
}
|