F
Filament11mo 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
justgkp11mo ago
Getting error Cannot make static method Filament\Resources\RelationManagers\RelationManager::getTitle() non static in class App\Filament\Resources\StudentResource\RelationManagers\StudentCircularsRelationManager
Solution
Kleis
Kleis11mo ago
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string { return __('Ownerships'); }
BlackShadow
BlackShadow11mo 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
justgkp11mo ago
this worked for me! Thanks a lot😍
Want results from more Discord servers?
Add your server
More Posts
previous and next record inside form using actionsHow to update form to previous or next record/item when buttons are clicked without reloading modal.CMS-Pages with Filament V3I know CMS-Pages isn't compatible with v3 of Filament but I've been trying to recreate it based on iBasic question regarding relationships in a resourceI have a Post resource, that has a user_id column, and in my form method I have this array: ``` pubHow to include Vite compiled JS into admin panel?I am creating a custom field, that needs to use a JS library. I am importing that library and initiaEdit/Remove "Create a (resource) to get started." when `canCreate()` is falseI have a resource that has `canCreate()` as false. The default label is "Create a (resource name) toDynamic number of select fieldsHi! I have tables: sets: id, name groups: id, name set_groups: id, group_id, set_id elements: id, n"Property type not supported in Livewire for property" when using custom castsI have a json field on my model, where I use a custom class as a cast: ```php protected $casts How to make a custom page "Settings" with only several fields and to have the custom route for that?Hello! I need to have a simple page with several text fields of global site settings like "adminEHow to make the current page indicator more visible in v3 table pagination?Is there an easy way to change the current page indicator in the standard v3 pagination visually (e.Get file name from media tableHi there, is it possible to get/show the file name (file_name) for each media in a Infolist? How can