Skip to content

BelongsToMany pivot fields are not showing on index table #3615

Closed
@milewski

Description

@milewski
  • Laravel Version: 8.68.1
  • Nova Version: 3.30.0
  • PHP Version: 8.0

Description:

The latest version of nova v3.30.0 breaks the pivot fields on the index page..

// Model 
public function exports(): BelongsToMany
{
    return $this
        ->belongsToMany(Export::class)
        ->using(ExportSegment::class)
        ->withPivot([ 'status' ]);
}
// Resource
BelongsToMany::make('Exports', 'exports', Export::class)->fields(function () {
    return [
        StatusField::make('Status', 'status'),
    ];
}),

Reverting to 3.29.0 the fields works as expected..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions