File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file. This project adheres to
3
3
[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
4
4
5
- ## 2.x
5
+ ## [ 2.0.0-beta.1 ] - 2020-03-04
6
6
7
7
### Added
8
8
- [ #348 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/348 )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ A demo application is available at [here](https://github.com/cloudcreativity/dem
62
62
63
63
| Laravel | This Package |
64
64
| --- | --- |
65
- | ` ^7.0 ` | ` ^ 2.0` |
65
+ | ` ^7.0 ` | ` 2.0.0-beta.1 ` |
66
66
| ` ^6.0 ` | ` ^1.0 ` |
67
67
| ` 5.8.* ` | ` ^1.0 ` |
68
68
| ` 5.7.* ` | ` ^1.0 ` |
Original file line number Diff line number Diff line change 77
77
}
78
78
}
79
79
},
80
- "minimum-stability" : " dev " ,
80
+ "minimum-stability" : " stable " ,
81
81
"prefer-stable" : true ,
82
82
"config" : {
83
83
"sort-packages" : true
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ Accept: application/vnd.api+json
161
161
"type": "posts",
162
162
"attributes": {
163
163
"title": "Hello World",
164
- "content": "..."
164
+ "content": "...",
165
+ "another-field": "..."
165
166
},
166
167
"relationships": {
167
168
"author": {
@@ -195,6 +196,7 @@ Your validator will be provided with the following array of data:
195
196
"id" => null,
196
197
"title" => "Hello World",
197
198
"content" => "...",
199
+ "another-field" => "...",
198
200
"author" => ["type" => "users", "id" => "123"],
199
201
"tags" => [
200
202
["type" => "tags", "id" => "1"],
@@ -221,6 +223,7 @@ class Validators extends AbstractValidators
221
223
return [
222
224
'title' => 'required|string|min:1|max:255',
223
225
'content' => 'required|string|min:1',
226
+ "another-field" => 'string|unique:posts,another_field',
224
227
'author' => [
225
228
'required',
226
229
new HasOne('users'),
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ public function getJobs()
243
243
}
244
244
245
245
/**
246
- * @return ContainerInterface|null
246
+ * @return ContainerInterface
247
247
*/
248
248
public function getContainer ()
249
249
{
You can’t perform that action at this time.
0 commit comments