We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to use the getModelLabel() function to set my translated labels, without interfering with this package.
The class Ancestor has the following function to get the relationship:
Ancestor.php
public function getRelationship(): string { if (! $this->relationship) { return $this->getResource()::getModelLabel(); } return $this->relationship; }
Problem is, I'm using getModelLabel to translate the navigation items, as suggested by the Filament documentation... Filament example My code
public static function getModelLabel(): string { return ___('signeditor.signs', 1); }
...which results in the relationship sign() being translated into Bord(), which does not exist 😛
1.0.0-alpha.5
8.2.11
10.30.0
Linux
No response
The text was updated successfully, but these errors were encountered:
My bad, just saw the relationship name option!
Sorry, something went wrong.
No branches or pull requests
What happened?
I want to use the getModelLabel() function to set my translated labels, without interfering with this package.
How to reproduce the bug
The class Ancestor has the following function to get the relationship:
Ancestor.php
Problem is, I'm using getModelLabel to translate the navigation items, as suggested by the Filament documentation...
Filament example
My code
...which results in the relationship sign() being translated into Bord(), which does not exist 😛
Package Version
1.0.0-alpha.5
PHP Version
8.2.11
Laravel Version
10.30.0
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: