fix category relation

This commit is contained in:
Russ Long 2022-08-08 14:54:16 -04:00
parent 2bbb10e55b
commit 05d347914e

View File

@ -25,7 +25,7 @@ class CarShowCategory extends Model
public function vehicle()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'type');
return $this->hasMany(App\Models\Vehicles::class, 'type');
}
public function showWinner()
{