F
Filament16mo ago
justgkp

is there any possibility to change relation manager label

I want to change the label name of relation manager/s. is there any method like $navigationLabel???
Solution:
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string { return __('Ownerships'); }...
Jump to solution
5 Replies
justgkp
justgkpOP16mo ago
Getting error Cannot make static method Filament\Resources\RelationManagers\RelationManager::getTitle() non static in class App\Filament\Resources\StudentResource\RelationManagers\StudentCircularsRelationManager
Solution
Kleis
Kleis16mo ago
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string { return __('Ownerships'); }
BlackShadow
BlackShadow16mo ago
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('Your Title Here');
}
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('Your Title Here');
}
justgkp
justgkpOP16mo ago
this worked for me! Thanks a lot😍
Want results from more Discord servers?
Add your server