From 9ac36b7ab839a5ca70b772609d568f92d2e1db51 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 7 Aug 2022 13:18:06 -0400 Subject: [PATCH] fix vehicle relation --- app/Filament/Resources/PeoplesChoiceResource.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Filament/Resources/PeoplesChoiceResource.php b/app/Filament/Resources/PeoplesChoiceResource.php index b85a64e..b0da167 100644 --- a/app/Filament/Resources/PeoplesChoiceResource.php +++ b/app/Filament/Resources/PeoplesChoiceResource.php @@ -44,10 +44,10 @@ class PeoplesChoiceResource extends Resource return $table ->columns([ TextColumn::make('pc_count')->label('PC Vote Count'), - TextColumn::make('awardVehicle.owner')->label('Vehicle Number'), - TextColumn::make('awardVehicle.year')->label('Year'), - TextColumn::make('awardVehicle.make')->label('Make'), - TextColumn::make('awardVehicle.model')->label('Model'), + TextColumn::make('vehicle.owner')->label('Vehicle Number'), + TextColumn::make('vehicle.year')->label('Year'), + TextColumn::make('vehicle.make')->label('Make'), + TextColumn::make('vehicle.model')->label('Model'), ]) ->filters([ //