F
Filament4mo 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 Zeus4mo 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 Zeus4mo ago
also $label is Deprecated: Use getModelLabel() instead.