update: add request log to middleware

This commit is contained in:
v2board
2023-06-01 23:31:56 +08:00
parent 1b8ec77bcc
commit 2285a7c92f
4 changed files with 28 additions and 1 deletions

View File

@ -2,6 +2,7 @@
namespace App\Console\Commands;
use App\Models\Log;
use App\Models\Plan;
use App\Models\StatServer;
use App\Models\StatUser;
@ -46,5 +47,6 @@ class ResetLog extends Command
{
StatUser::where('record_at', '<', strtotime('-2 month', time()))->delete();
StatServer::where('record_at', '<', strtotime('-2 month', time()))->delete();
Log::where('created_at', '<', strtotime('-1 month', time()))->delete();
}
}