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'); }