Skip to content

Commit 43ff947

Browse files
committed
0.2.0-beta.4
1 parent 228ea6e commit 43ff947

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.0-beta.4]
9+
### Added
10+
- `Laravel\rules()`: Replace `{id}` placeholder in rules with the model's key.
11+
- This is useful for the `unique` rule, for example: `unique:users,email,{id}`
12+
- `Laravel\can()`: Pass through additional arguments to Gate check.
13+
- This is needed to use policy methods without models, for example: `can('create', Post::class)`
14+
15+
### Changed
16+
- Get a fresh copy of the model to display after create/update to ensure consistency
17+
- Respond with `400 Bad Request` when attempting to filter on an attribute of a polymorphic relationship
18+
819
## [0.2.0-beta.3] - 2021-09-03
920
### Fixed
1021
- Fix dependency on `http-accept` now that a version has been tagged
@@ -51,5 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5162
### Fixed
5263
- Fix pagination next link appearing when it shouldn't
5364

65+
[0.2.0-beta.4]: https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.4...v0.2.0-beta.3
66+
[0.2.0-beta.3]: https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.3...v0.2.0-beta.2
5467
[0.2.0-beta.2]: https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.2...v0.2.0-beta.1
5568
[0.2.0-beta.1]: https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.1...v0.1.0-beta.1

0 commit comments

Comments
 (0)