Skip to content

Commit 1173965

Browse files
committed
[Feature] Allow Eloquent number field to accept strings
Closes #113
1 parent 1eaa9b8 commit 1173965

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file. This projec
1010
- [#110](https://github.com/laravel-json-api/laravel/issues/110) For requests that modify a relationship, it is now
1111
possible to get the model or models referenced in the request JSON using the `toOne()` or `toMany()` methods on the
1212
resource request class.
13+
- [#113](https://github.com/laravel-json-api/laravel/issues/113) The Eloquent `Number` field can now be configured to
14+
accept numeric strings by calling the `acceptStrings()` method on the field.
1315

1416
## [2.0.0] - 2022-02-09
1517

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^2.0",
29-
"laravel-json-api/eloquent": "^2.0",
28+
"laravel-json-api/core": "^2.1",
29+
"laravel-json-api/eloquent": "^2.1",
3030
"laravel-json-api/encoder-neomerx": "^2.0",
3131
"laravel-json-api/exceptions": "^1.1",
3232
"laravel-json-api/spec": "^1.1",
@@ -65,7 +65,7 @@
6565
]
6666
}
6767
},
68-
"minimum-stability": "stable",
68+
"minimum-stability": "dev",
6969
"prefer-stable": true,
7070
"config": {
7171
"sort-packages": true

0 commit comments

Comments
 (0)