If you work with multi-language projects and want the navigation menu items to be translatable, you can't use the __() function in the PHP class property:
class ProductResource extends Resource{ // You can't do that: protected static ?string $navigationLabel = __('Products');
That code will lead to an error:

Instead, you can define this label in a method getNavigationLabel():
class ProductResource extends Resource{ public static function getNavigationLabel(): string { return __('Products'); }
Then the translations will work without any errors.
Enjoyed This Tip?
Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.
Recent Courses on Laravel Daily
AI Agents/IDEs for Laravel: May 2026 (Claude Code, Codex, OpenCode, etc)
7 lessons
52 min
Roles and Permissions in Laravel 13
14 lessons
57 min
[FREE] Laravel 13 for Beginners: 3 Demo Projects
5 lessons
29 min