File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## [ 1.1.2] - 2025-06-11
8
+
9
+ ### Fixed
10
+
11
+ - Fix formatting composite keys.
12
+
7
13
## [ 1.1.1] - 2025-05-15
8
14
9
15
### Fixed
@@ -351,6 +357,7 @@ _Stable release based on [0.1.0-rc.1]._
351
357
352
358
- New changelog file.
353
359
360
+ [ 1.1.2 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.1.1...v1.1.2
354
361
[ 1.1.1 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.1.0...v1.1.1
355
362
[ 1.1.0 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.0.3...v1.1.0
356
363
[ 1.1.0-rc.1 ] : https://github.com/internetguru/laravel-model-browser/releases/tag/v1.0.3
Original file line number Diff line number Diff line change 1
- 1.1.1
1
+ 1.1.2
Original file line number Diff line number Diff line change @@ -259,10 +259,11 @@ protected function format($data)
259
259
{
260
260
$ data ->transform (function ($ item ) {
261
261
foreach ($ this ->formats as $ attribute => $ format ) {
262
- if (! isset ($ item ->{$ attribute })) {
262
+ $ value = Arr::get ($ item , $ attribute );
263
+ if ($ value === null ) {
263
264
continue ;
264
265
}
265
- $ item ->{$ attribute . 'Formatted ' } = $ format ($ item ->{ $ attribute } , $ item );
266
+ $ item ->{$ attribute . 'Formatted ' } = $ format ($ value , $ item );
266
267
}
267
268
268
269
return $ item ;
You can’t perform that action at this time.
0 commit comments