Implement superadmin audit log for mutations
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Models\SuperAdminActionLog;
|
||||
use App\Services\Monitoring\PackageLimitMetrics;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
@@ -21,3 +23,7 @@ Artisan::command('metrics:package-limits {--reset}', function () {
|
||||
$this->comment('Package limit metrics cache was reset.');
|
||||
}
|
||||
})->purpose('Inspect package limit monitoring counters and optionally reset them');
|
||||
|
||||
Schedule::command('model:prune', [
|
||||
'--model' => [SuperAdminActionLog::class],
|
||||
])->daily();
|
||||
|
||||
Reference in New Issue
Block a user