Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textNotFound for resources? #62

Open
ap1969 opened this issue Jan 28, 2022 · 0 comments
Open

textNotFound for resources? #62

ap1969 opened this issue Jan 28, 2022 · 0 comments

Comments

@ap1969
Copy link

ap1969 commented Jan 28, 2022

Hi,
I'd like to change the text "There are no records in this view" for each resource I've set up. I thought you would be able to do it like this::

class TimerResource extends Resource
{
    /**
     * The model the resource corresponds to.
     *
     * @var string
     */
    public static $model = \App\Models\Timer::class;

    /**
     * @return string
     */
    protected function textNotFound(): string
    {
        return __('There are no timers');
    }

    ...

But that's not working.

Anyone know how to do this?

Regards,
Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant