class Part extends Model
{
public function fitments(): BelongsToMany
{
return $this->belongsToMany(VehicleMake::class, 'fitments', 'part_id', 'vehicle_make_id')->withPivot(['vehicle_model_id', 'vehicle_trim_id', 'vehicle_year_id']);
}
}->actions([
Tables\Actions\DetachAction::make(),
])