orchidsoftware / crud

Simplify the process of building CRUD (Create, Read, Update, Delete) functionality in Laravel using the features of Orchid.
https://orchid.software
MIT License
137 stars 34 forks source link

textNotFound for resources? #62

Open ap1969 opened 2 years ago

ap1969 commented 2 years ago

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