Skip to content

Commit

Permalink
Update documentation and changelog
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sebdesign committed Oct 2, 2018
1 parent 008222e commit 7ca724b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All Notable changes to `laravel-state-machine` will be documented in this file

## 1.3.0 - 2018-10-01

### Added
- Implemented authorization using Gates and Policies.
- Display callbacks in the debug command.

### Changed
- Callback methods for classes that are not bound to the container are called statically.
- Return exit codes for errors in the debug command.

## 1.2.5 - 2018-09-05

- Add support for Laravel 5.7
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ $ php artisan winzou:state-machine:debug simple
| published |
| rejected |
+--------------------+

+-----------------+------------------+------------------+
| Transition | From(s) | To |
+-----------------+------------------+------------------+
Expand All @@ -258,6 +259,25 @@ $ php artisan winzou:state-machine:debug simple
+-----------------+------------------+------------------+
| publish | accepted | published |
+-----------------+------------------+------------------+

+---------------------+--------------------+------------------------+--------+
| Guard Callbacks | Satisfies | Do | Args |
+---------------------+--------------------+------------------------+--------+
| guard_on_submitting | On: submit_changes | MyClass::handle() | object |
| guard_on_approving | On: approve | Gate::check("approve") | |
+---------------------+--------------------+------------------------+--------+

+---------------------+-------------+-------------+-----------------------------+
| Before Callbacks | Satisfies | Do | Args |
+---------------------+-------------+-------------+-----------------------------+
| log_before_approval | On: approve | Log::info() | "approving article", object |
+---------------------+-------------+-------------+-----------------------------+

+----------------------+--------------+------------------------------+---------------+
| After Callbacks | Satisfies | Do | Args |
+----------------------+--------------+------------------------------+---------------+
| email_after_approval | To: accepted | SendApprovalMail::dispatch() | object, event |
+----------------------+--------------+------------------------------+---------------+
```

## Changelog
Expand Down

0 comments on commit 7ca724b

Please sign in to comment.