diff --git a/src/Pages/Resource.php b/src/Pages/Resource.php index 9ddbfe0..9d64990 100644 --- a/src/Pages/Resource.php +++ b/src/Pages/Resource.php @@ -76,7 +76,7 @@ public static function softDeletes() */ public static function label() { - return 'nova-pages'; + return config('novapage.resource_label') ?? 'nova-pages'; } /** @@ -86,7 +86,7 @@ public static function label() */ public static function singularLabel() { - return 'nova-page'; + return config('novapage.resource_singular_label') ?? 'nova-page'; } /** diff --git a/src/config.php b/src/config.php index 0776d2d..e78c4d0 100644 --- a/src/config.php +++ b/src/config.php @@ -12,6 +12,26 @@ */ 'label' => 'Pages', + /* + |-------------------------------------------------------------------------- + | Resource label + |-------------------------------------------------------------------------- + | + | Set the displayable label of the resource. + | + */ + 'resource_label' => 'nova-pages', + + /* + |-------------------------------------------------------------------------- + | Resource singular label + |-------------------------------------------------------------------------- + | + | Set the displayable singular label of the resource. + | + */ + 'resource_singular_label' => 'nova-page', + /* |-------------------------------------------------------------------------- | Admin tool date formating