vehicle relation

This commit is contained in:
Russ Long 2022-08-11 17:09:03 -04:00
parent c9843c6404
commit e0a5e98a6a
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -20,7 +20,7 @@ class VehicleScores extends Model
'updated_at'
];
public function judge()
public function judges()
{
return $this->belongsTo('App\Models\Judges', 'judge', 'id');
}