F
Filament11mo ago
HGalih

Conditional Resource/Navigation Label

Is there anyway I could make this work?
No description
Solution:
use the function and remove the prop '$label' ```php public static function getLabel(): ?string { return self::$label;...
Jump to solution
2 Replies
Solution
Lara Zeus
Lara Zeus11mo ago
use the function and remove the prop '$label'
public static function getLabel(): ?string
{
return self::$label;
}
public static function getLabel(): ?string
{
return self::$label;
}
Lara Zeus
Lara Zeus11mo ago
also $label is Deprecated: Use getModelLabel() instead.

Did you find this page helpful?