vehicle relation
This commit is contained in:
parent
c9843c6404
commit
e0a5e98a6a
@ -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';
|
||||
|
||||
|
@ -20,7 +20,7 @@ class VehicleScores extends Model
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
public function judge()
|
||||
public function judges()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Judges', 'judge', 'id');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user