diff --git a/app/Models/CarShowWinner.php b/app/Models/CarShowWinner.php index 6f416de..5a6efb9 100644 --- a/app/Models/CarShowWinner.php +++ b/app/Models/CarShowWinner.php @@ -20,11 +20,11 @@ class CarShowWinner extends Model public function awardVehicle() { - return $this->hasMany(Vehicles::class, 'id', 'vehicle'); + return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); } public function awardCategory() { - return $this->hasMany(CarShowCategory::class, 'id', 'category_name'); + return $this->hasMany('App\Models\CarShowCategory', 'id', 'category'); } }