Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyyb authored Jan 6, 2021
1 parent a59900d commit 6e52f0b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,20 @@ class Page extends Model

## Nova resource field configuration

You can add context field to your Nova resource's fields ;
You can add context field to your Nova resource's fields:

```php
public function fields(Request $request)
{
return [
// ...

ContextField::make('locale'),

// ...
];
}
```

## Nova resource filter configuration

Expand Down

0 comments on commit 6e52f0b

Please sign in to comment.