Skip to content

Commit

Permalink
Add explanation for display on create and update views
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwjn committed Feb 6, 2022
1 parent 66ced63 commit 23fa1ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ Button::make('Notify')->visible($request->user()->can('notifyUser', $this))
Of course you can also use Nova's builtin methods, like for [authorization](https://nova.laravel.com/docs/3.0/resources/authorization.html#fields)
or to limit visibility to [specific views](https://nova.laravel.com/docs/3.0/resources/fields.html#showing-hiding-fields).

If you want to show a button on the create or update views you can simply use Nova's builtin methods:

```php
Button::make('Notify')->showOnCreating()->showOnUpdating()
```

#### Disabled

You can disable the button:
Expand Down

0 comments on commit 23fa1ff

Please sign in to comment.