Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Sep 2, 2020
1 parent 1d20ccc commit efd7cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ It's possible to define locale specific validation rules.
To do so, add the `->rulesFor()` on your field and the `HandlesTranslatable` trait to your Nova resource:

```php
use OptimistDigital\NovaTranslatable\HandlesTranslatable;

class Product extends Resource
{
use \OptimistDigital\NovaTranslatable\HandlesTranslatable;
use HandlesTranslatable;

public function fields(Request $request)
{
return [
ID::make()->sortable(),

Text::make(__('Name'), 'name')
->sortable()
->translatable()
Expand Down

0 comments on commit efd7cb8

Please sign in to comment.