Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 24092e6

Browse files
committed
Fix included showing empty on list of resources
1 parent 02c68e9 commit 24092e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Http/Resources/CollectsWithIncludes.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ protected function withIncludes()
2525
}
2626
}
2727

28-
$this->with['included'] = $this->uniqueIncludes();
28+
$included = $this->uniqueIncludes();
29+
30+
if ($included) {
31+
$this->with['included'] = $included;
32+
}
2933
}
3034

3135
/**

0 commit comments

Comments
 (0)