F
Filament10mo ago
Dakaa

How to translate the relationship name in relation manager?

for example the relationship is blogPosts so the relation manager's table header automatically named as Blog Posts, but how do I make it translatable?
5 Replies
Dakaa
Dakaa10mo ago
@Vp thankyou!
Marco Santos
Marco Santos10mo ago
Weirdly I'm having this error from PHP. I basically copied and pasted the method declaration from the RelationManager class which is also exactly the same declaration from the solution here. What's going on? Is this a bug with PHP? I'm using PHP 8.2, Laravel 10+ and Filament 3. Any thoughts?
No description
Marco Santos
Marco Santos10mo ago
I figured out... I forgot to import the "Model" abstract class. That's why. Silly PHP error...
Dakaa
Dakaa10mo ago
Yeah I was about to say Model lol