F
Filament2mo ago
Xavi

Global search title

Is it possible to change Global Search title of results I need to change "Challanges" by "Hábitos" in image Thanks!
No description
Solution:
@Xavi define this methods in the ChallengeResource and try searching again:
public static function getModelLabel(): string { return 'hábito'; }
public static function getPluralModelLabel(): string { return 'hábitos'; }
public static function getModelLabel(): string { return 'hábito'; }
public static function getPluralModelLabel(): string { return 'hábitos'; }
...
Jump to solution
4 Replies
Solution
ericmp
ericmp2mo ago
@Xavi define this methods in the ChallengeResource and try searching again:
public static function getModelLabel(): string { return 'hábito'; }
public static function getPluralModelLabel(): string { return 'hábitos'; }
public static function getModelLabel(): string { return 'hábito'; }
public static function getPluralModelLabel(): string { return 'hábitos'; }
ericmp
ericmp2mo ago
i think u really only need the 2nd one, but also define the 1st one just in case
Xavi
XaviOP2mo ago
it works only with first one. Thank u so much!!! @ericmp
ericmp
ericmp2mo ago
u welcome!
Want results from more Discord servers?
Add your server