Skip to content

Commit

Permalink
update changelog and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
João Santos committed Jun 19, 2020
1 parent e820759 commit 4f9a931
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## 0.3.0 - 2020-06-07

- ability to change button text
- ability to use action button on detail view

## 0.4.0 - 2020-06-19
- ability to pass an instance of the action class instead of class name #9
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ public function fields()
return [
ActionButton::make('Action')
->action(ChangeRole::class, $this->id)
//->action(new ChangeRole(), $this->id) using a new instance
];
}
```

The `action()` method requires two params - the action class name, and the target resource id.
The `action()` method requires two params - the action class name or a new instance, and the target resource id.

## ![Basic example](images/basic_example.png)

Expand Down

0 comments on commit 4f9a931

Please sign in to comment.