belongsTo(CarShowCategory::class, 'type', 'id'); } public function vehicleOwner() { return $this->belongsTo(Bidders::class, 'owner', 'bidder_assigned_number'); } public function vehicleScores() { return $this->hasMany(VechicleScores::class, 'vehicle'); } public function CarShowWinner() { return $this->belongsTo(CarShowWinner::class, 'vehicle'); } }