relation updates

This commit is contained in:
2022-08-08 14:57:49 -04:00
parent 6191923269
commit e618bd4b56
3 changed files with 5 additions and 5 deletions

View File

@ -29,6 +29,6 @@ class CarShowCategory extends Model
}
public function showWinner()
{
return $this->hasMany('App\Models\CarShowWinner', 'id', 'category');
return $this->hasMany(CarShowWinner::class, 'category');
}
}