them log, chinh upload
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\ActivityLogger;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
@@ -71,6 +72,17 @@ class ExportBackup extends Command
|
||||
|
||||
$this->printSummary($backupDir, $totalRows);
|
||||
|
||||
ActivityLogger::log(
|
||||
'export',
|
||||
__('feedback.log_export_done', ['tables' => count($tables), 'rows' => $totalRows]),
|
||||
null,
|
||||
[
|
||||
'tables' => $this->stats,
|
||||
'total_rows' => $totalRows,
|
||||
'path' => $backupDir,
|
||||
],
|
||||
);
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user