Skip to content

Commit

Permalink
Added extra demo for other field type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis committed Sep 13, 2018
1 parent 3a86266 commit 6124b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ Add a new `NovaDependencyContainer` to your Nova Resource:
])->dependsOn('name_format', 0)->onlyOnForms(),
```

It is also possible to set up multiple dependencies for your container by calling `dependsOn` multiple times on the container.
It is also possible to set up multiple dependencies for your container by calling `dependsOn` multiple times on the container.

You can use any type of field type dependency, i.e. a checkbox:

![Demo](https://raw.githubusercontent.com/epartment/nova-dependency-container/master/docs/demo-2.gif)

```php
\Laravel\Nova\Fields\Boolean::make('Active', 'active'),

Expand Down
Binary file added docs/demo-2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6124b7b

Please sign in to comment.