File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
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
+
8
19
## [ 0.2.0-beta.3] - 2021-09-03
9
20
### Fixed
10
21
- 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
51
62
### Fixed
52
63
- Fix pagination next link appearing when it shouldn't
53
64
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
54
67
[ 0.2.0-beta.2 ] : https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.2...v0.2.0-beta.1
55
68
[ 0.2.0-beta.1 ] : https://github.com/tobyzerner/json-api-models/compare/v0.2.0-beta.1...v0.1.0-beta.1
You can’t perform that action at this time.
0 commit comments