From e0a5e98a6a6f8d4b42cdf45f67758f0e7656491f Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 11 Aug 2022 17:09:03 -0400 Subject: [PATCH] vehicle relation --- .../RelationManagers/JudgeRelationManager.php | 2 +- app/Models/VehicleScores.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/VehicleScoresResource/RelationManagers/JudgeRelationManager.php b/app/Filament/Resources/VehicleScoresResource/RelationManagers/JudgeRelationManager.php index 2aa6623..5732c89 100644 --- a/app/Filament/Resources/VehicleScoresResource/RelationManagers/JudgeRelationManager.php +++ b/app/Filament/Resources/VehicleScoresResource/RelationManagers/JudgeRelationManager.php @@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\SoftDeletingScope; class JudgeRelationManager extends RelationManager { - protected static string $relationship = 'judge'; + protected static string $relationship = 'judges'; protected static ?string $recordTitleAttribute = 'judge_number'; diff --git a/app/Models/VehicleScores.php b/app/Models/VehicleScores.php index 8e38584..49bfda3 100644 --- a/app/Models/VehicleScores.php +++ b/app/Models/VehicleScores.php @@ -20,7 +20,7 @@ class VehicleScores extends Model 'updated_at' ]; - public function judge() + public function judges() { return $this->belongsTo('App\Models\Judges', 'judge', 'id'); }