filament: RelationManager table header is not using $pluralModelLabel

Package

filament/filament

Package Version

  • v3.0.0-beta9

Laravel Version

  • v10.15.0

Livewire Version

  • v3.0.0-beta.3

PHP Version

  • 8.2.7

Problem description

The table header for RelationManagers is not using $pluralModelLabel and just shows the default name which is derived from resource name.

Expected behavior

The table header should use $pluralModelLabel which was the v2 behaviour.

Steps to reproduce

  1. install filament v3
  2. create a user resource
  3. create a role mode, migration and resource, and relationship on the user model
  4. override protected static ?string $pluralModelLabel = ‘Not Roles’;
  5. browse the users page
  6. the table header for relation manager at the bottom of the page still says “Roles”, this is the bug

Reproduction repository

https://github.com/mokhosh/filament-v3-bug-reproduction

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Reopening so I dont forget about it, but I can’t guarantee that it will be looked into anytime soon. The docs should be correct on how to customize this text.