fix: resolve cat_name exception and correct model relationships
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user