'boolean', ]; protected $fillable = [ 'category_name', 'vehicle_type' ]; protected $dates = [ 'created_at', 'updated_at' ]; public function vehicle() { return $this->hasMany(Vehicles::class, 'type'); } public function showWinner() { return $this->hasMany('App\Models\CarShowWinner', 'id', 'category'); } }