feat: forgot password

config: msg
This commit is contained in:
2026-07-30 22:42:38 +07:00
parent 781a0f8aa7
commit 36eec0a664
11 changed files with 284 additions and 4 deletions
+10 -2
View File
@@ -19,7 +19,15 @@ class ResetCardsCommand extends Command
public function handle()
{
$this->adminService->resetAllCards();
$this->info('Successfully reset all cards for active members to 0!');
try {
$this->adminService->resetAllCards();
$this->info('Successfully reset all cards for active members to 0!');
} catch (\Throwable $e) {
\Illuminate\Support\Facades\Log::error('Lỗi xảy ra khi chạy command reset thẻ hàng tháng (cards:reset): ' . $e->getMessage());
$this->error('Reset cards failed: ' . $e->getMessage());
return Command::FAILURE;
}
return Command::SUCCESS;
}
}