diff --git a/app/Models/CarShowCategory.php b/app/Models/CarShowCategory.php index 8993e7b..1a851d5 100644 --- a/app/Models/CarShowCategory.php +++ b/app/Models/CarShowCategory.php @@ -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() {