fix category relation
This commit is contained in:
parent
2bbb10e55b
commit
05d347914e
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user