fix: resolve cat_name exception and correct model relationships

This commit is contained in:
2026-05-01 15:51:23 -04:00
parent e79d6174f8
commit 4fdd41e9b8
6 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -30,6 +30,6 @@ class VehicleScores extends Model
public function scoredVehicle()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
return $this->belongsTo('App\Models\Vehicles', 'vehicle', 'id');
}
}