From c13238014a5b1b93003bd3768db2c1ea86751f62 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 20 Apr 2026 10:03:36 -0400 Subject: [PATCH] add score to winner table --- app/Console/Commands/TabulateWinnersNew.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/TabulateWinnersNew.php b/app/Console/Commands/TabulateWinnersNew.php index 0f7b103..04043a0 100644 --- a/app/Console/Commands/TabulateWinnersNew.php +++ b/app/Console/Commands/TabulateWinnersNew.php @@ -91,7 +91,8 @@ class TabulateWinnersNew extends Command CarShowWinner::updateOrCreate([ 'category' => $categoryId, 'place' => $place, - 'vehicle' => $winner->vehicle_id + 'vehicle' => $winner->vehicle_id, + 'total_score' => $winner->totalscore ]); } } @@ -125,7 +126,8 @@ class TabulateWinnersNew extends Command CarShowWinner::create([ 'category' => $categoryId, 'place' => $place, - 'vehicle' => $winner->vehicle_id + 'vehicle' => $winner->vehicle_id, + 'total_score' => $winner->totalvotes ]); } }