1

In laravel Nova resources I can change the resource name with label function but in Lens, with the same function it doesn't work.

Any idea?

Code:

public static function label(): string
{
    return 'Asistencias Empleados';
}
0

1 Answer 1

2

For lens we don't use labels for changing name we have this method name

public function name():string
{
    return __('Most Valuable Users');
}
Sign up to request clarification or add additional context in comments.

2 Comments

It worked for me, thank you very much. I didn't find this in the Nova documentation.
Is documented in the localization part check this link nova.laravel.com/docs/4.0/customization/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.