Z3d0X / filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps

Home Page:https://filamentphp.com/plugins/fabricator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PageResource fix deprecation

devhoussam1998 opened this issue · comments

getLabel() is deprecated Use getModelLabel() instead.

https://github.com/Z3d0X/filament-fabricator/blob/2.x/src/Resources/PageResource.php#L182

getPluralLabel() is deprecated Use getPluralModelLabel() instead.

https://github.com/Z3d0X/filament-fabricator/blob/2.x/src/Resources/PageResource.php#L187

Expected Update:

    public static function getModelLabel(): string
    {
        return __('filament-fabricator::page-resource.labels.page');
    }

    public static function getPluralModelLabel(): string
    {
        return __('filament-fabricator::page-resource.labels.pages');
    }