File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.1.2] - 2025-06-11
10
+
11
+ ### Fixed
12
+
13
+ - Fix formatting composite keys.
14
+
9
15
## [ 1.1.1] - 2025-05-15
10
16
11
17
### Fixed
@@ -354,6 +360,7 @@ _Stable release based on [0.1.0-rc.1]._
354
360
- New changelog file.
355
361
356
362
[ Unreleased ] : https://https://github.com/internetguru/laravel-model-browser/compare/staging...dev
363
+ [ 1.1.2 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.1.1...v1.1.2
357
364
[ 1.1.1 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.1.0...v1.1.1
358
365
[ 1.1.0 ] : https://https://github.com/internetguru/laravel-model-browser/compare/v1.0.3...v1.1.0
359
366
[ 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 @@ -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