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
[NEW] Laravel 13 Starter Kit Teams and Customizations
10 lessons
33 min
Laravel 13 Eloquent: Expert Level
41 lessons
1 h 34 min
Queues in Laravel 13
18 lessons
1 h 12 min read