Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-alrek authored Jan 17, 2024
1 parent 78426f2 commit 01e950c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ The trait modifies the default methods for retrieving the resource labels to use

It will look for the translation key in the following format:

lang/`<locale>`/resources.php
```php
return [
// The resource slug is used as the translation key
'articles' => [
'model_label' => 'article|articles',
'navigation_label' => 'Articles', // Optional, defaults to model_label
'slug' => 'articles', // Optional, defaults to resource slug
'slug' => 'articles', // Optional, will use model_label as fallback
],
];
```
Expand Down

0 comments on commit 01e950c

Please sign in to comment.