From 05d347914e7031102c5c097760e3795930fa1e8d Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 14:54:16 -0400 Subject: [PATCH] fix category relation --- app/Models/CarShowCategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {